On 9/23/06, Mark D. Baushke <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1Hi Ankush, A quick change to your version of the cvs_acls.pl script would probably be to change this line: $myname = $ENV{"USER"} if !($myname = $ENV{"LOGNAME"}); To this $myname = $ENV{"CVS_USER"} || $ENV{"USER"} || $ENV{"LOGNAME"} || getpwuid($<) || "uid#$<"; This will try to find a defined environment variable first, then try to lookup the current uid in the passwd file and then just create a user based on uid#nnnn where nnn is the uid as defined by $< ... Failing that, you should probably consider picking up the latest version of cvs_acls.pl as the version you have is not as flexible as the newer revisions of this script. Documentation and script are here: http://cvs.savannah.nongnu.org/viewcvs/ccvs/contrib/cvs_acls.html?rev=HEAD&root=cvs http://cvs.savannah.nongnu.org/viewcvs/ccvs/contrib/cvs_acls.pl?rev=HEAD&root=cvs You should carefully read the documentation. The key thing you need to understand about the new version of the script is that the -u switch should be passed the CVS_USER rather than $USER, so your commitinfo script will end up having something like this line: DEFAULT /usr/local/bin/cvs_acls -u $CVS_USER
hey Mark, Thanks for the guidance, I will definitely look into this . You have always been very helpful. Thanks & Regards Ankush Grover _______________________________________________ info-cvs mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/info-cvs
