Re: Access to CVSROOT/passwd mapped username

2000-04-17 Thread Larry Jones
Rodent of Unusual Size writes: A little experimentation reveals something (I find) confusing. CVSROOT/loginfo contains a line like this: DEFAULT $CVSROOT/CVSROOT/foo $USER %s The Perl CVSROOT/foo script, however, shows different values for $ARGV[0] (the $USER above) and

Re: Access to CVSROOT/passwd mapped username

2000-04-17 Thread Rodent of Unusual Size
Larry Jones wrote: Variable expansion in administrative files like loginfo is completely separate from the environment. So I discovered. The overloading of expansion syntax and names is hardly optimal when the meanings aren't identical, though, IMHO. (That is, having $USER expand to one

Re: Access to CVSROOT/passwd mapped username

2000-04-17 Thread Larry Jones
Rodent of Unusual Size writes: As I understand it, the USER variable is set to the username of the server-local user actually accessing the repository. In the case of a pserver-accessed repository, with usernames mapped through the CVSROOT/passwd file mechanism, this will typically be the

Re: Access to CVSROOT/passwd mapped username

2000-04-17 Thread Larry Jones
Rodent of Unusual Size writes: Um, no -- the manual is WRONG in this case. It says that USER is expanded to the username running the server. Wrong-o -- that's the meaning in the environment. In the admin expansion, USER is the username of the *client* (at least in a pserver/passwd

Re: Access to CVSROOT/passwd mapped username

2000-04-11 Thread Rodent of Unusual Size
Rodent of Unusual Size wrote: As I understand it, the USER variable is set to the username of the server-local user actually accessing the repository. In the case of a pserver-accessed repository, with usernames mapped through the CVSROOT/passwd file mechanism, this will typically be the

Re: Access to CVSROOT/passwd mapped username

2000-04-11 Thread Laird Nelson
Rodent of Unusual Size wrote: The Perl CVSROOT/foo script, however, shows different values for $ARGV[0] (the $USER above) and $ENV{"USER"} (the actual environment). The former is the remote (client) username I want, whilst the latter is the local (server) username. It looks as though