bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix for cvs_acls with pserver user mappings


From: Derek FEICHTINGER
Subject: fix for cvs_acls with pserver user mappings
Date: Fri, 18 Jul 2003 15:48:14 +0200
User-agent: KMail/1.4.3

Hi,

the current cvs_acls script is not able to cope with the user mappings in the 
pserver passwd file (or better: it uses the mapped identities although it 
should not).

To identify the commiting user CVS looks at the $ENV{"USER"} and 
$ENV{"LOGNAME"} variables instead of also checking the $ENV{"CVS_USER"} 
variable. 

By including something like this...
------------
if ($ENV{"CVS_USER"}) {
    $myname = $ENV{"CVS_USER"};
}
------------

...just after the line where $myname gets set at the start of the cvs_acls 
script, it works ok.

Without it, all users in this kind of passwd file will be matched as user 
"cvsuser" against the avail list instead of being matched as their real user 
names:

peter:(password):cvsuser
paul:(password):cvsuser
mary:(password):cvsuser

Regards,
Derek

-- 
Dr. Derek Feichtinger                   Tel:   +41 22 767 26 98
LCG/SPI Group                           email: address@hidden
CERN                                    http://people.web.psi.ch/feichtinger
CH-1211 Genève 23





reply via email to

[Prev in Thread] Current Thread [Next in Thread]