We are using cvs on a fairly large site with pserver option. We create
cvs users that are not system users and manage the module access using
a number of system users. However, this makes access management
somewhat difficult with growing number of projects and users. We have
tried to use cvs_acl script, but we found that it uses the user name
derived from the environment and not from the connection string passed
through the :pserver option. Is there an option (compile time or
runtime) that can be used to pass the user name in the pserver
connection string to the pre-commit hooks ?
We did modify the cvs source code of 1.11.20 to obtain the
functionality needed. (See the diff patch below). But we would like to
know if there is a standard option already available for this. If not,
would it be possible to include the same in the future builds as a
compile time or runtime option?
run_setup (filter);
run_arg (repository);
(void) walklist (saved_ulist, precommit_list_proc, NULL);
+ // :Change begin :
+ // Change to add the cvs user name into the arg list of the pre-commit
+ // proc
+ run_arg (CVS_Username);
+ // :Change end:
+ // Change to add the cvs user name into the arg list of the pre-commit
+ // proc
return run_exec (RUN_TTY, RUN_TTY, RUN_TTY, RUN_NORMAL|RUN_REALLY);
}