> -----Original Message----- > From: Derek Robert Price [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 5:07 PM > To: Andrey Aristarkhov > Cc: [EMAIL PROTECTED] > Subject: Re: user.c, user.h
[skipped] > >You are right. There must be a struct like this > >struct cvs_passwd { > > char * username; > > char * passwd; > > char * alias; > > /* from CVSROOT/users */ > > char * notify_name; > >} cvspasswd_t; > >and corresponded function > > > >cvspasswd_t * getcvspwent(const char * user, const char * passwd_file); > >or even better > >cvspasswd_t * getcvspwent(const char * user, int file_type /* > >PASSWD_LOCAL | PASSWD_ROOT */); > >PASSWD_LOCAL is for ~/.cvspasswd and PASSWD_ROOT is for CVSROOT/passwd > > > > > > Let's name them like the system functions. The system getpwent() > iterates over the entries in the file, returning a new passwd structure > with each call. getpwnam() looks up a single passwd structure by user > name. Ok. Thus, there will be three functions for passwords reading getcvspwent(int mode); getcvspwnam(const char * username, int mode); endcvspwent(int mode); where mode is enum cvspwmode {CPM_LOCAL, CPM_ROOT, CPM_CURRENT}; CPM_CURRENT is necessary for consequent calls to getcvspwent() function; > >Sorry for some uncertainty. I meant that user's caller prinicipal and > >CVS user name could be deferent. > > > > > > What is written in the log file on commit in local mode under NT then? NT user name, of course. Ok. I try to explain again (sorry, English is not my native language). My UNIX account name is 'dron' but my CVS account is 'arist'. Thus, with current implementation of 'password' I'm able to change my password for 'arist' running 'cvs pass arist' Regards, Andrey _______________________________________________ Bug-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-cvs