cvs commit: src/usr.bin/xinstall

Matthew Dillon dillon at apollo.backplane.com
Thu Sep 23 13:43:06 PDT 2004


:Matthew Dillon wrote:
:>   Add the -L and -l options to install.  -L allows an alternative /etc directory
:>   path to be specified and causes install to search LOPT/group and
:>   LOPT/master.passwd for group and user names.  If the -l option is also
:>   specified, install will fallback to system files if the group or user name
:>   cannot be found in the alternative /etc directory.
:
:Shouldn't it be vice versa? like, fall back to the alternative directory 
:if you don't find the gid/uid in the real /etc/*
:
:cheers
:   simon

    That's hard to say.  Having a fallback at all is going to have fairly
    non-deterministic results, which is not a good thing. 

    Perhaps what we should do is have the -l case check both the system and
    the -L directory and error out if the user or group id exists in
    both AND the uid/gid is different.  That way it doesn't matter which file
    is checked first and we get far more deterministic operation... and
    we force the sysop to make his base uids and gids match the template.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list