Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Chris G. Demetriou <cgd@netbsd.org>
List: source-changes
Date: 07/27/2000 06:57:52
Module Name: basesrc
Committed By: cgd
Date: Thu Jul 27 03:57:51 UTC 2000
Modified Files:
basesrc/usr.bin/xinstall: xinstall.c
Log Message:
If unprivileged, don't even look up user or group name. (always set uid and
gid to -1.) Don't bother checking 'unpriv' when it's redundant with the
uid/gid == -1 check. (Doing the uid/gid handling consistently also fixes
the directory-creation code, which didn't check unpriv and did chmod/chown
anyway.) One minor spaces/tabs cleanup at one of the uid/gid checks.
To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 basesrc/usr.bin/xinstall/xinstall.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.