Subject: CVS commit: basesrc/usr.bin/xinstall
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 10/11/2001 05:06:33
Module Name:	basesrc
Committed By:	lukem
Date:		Thu Oct 11 02:06:33 UTC 2001

Modified Files:
	basesrc/usr.bin/xinstall: install.1 xinstall.c

Log Message:
- Implement "-M log", which appends the metadata associated with the
  installed file or directory to `log'. This is primarily designed
  to be used in conjunction with -U, but that's not mandatory.
  Provide metadata_log() to do the hard work. The log file is opened
  for append at the start, and flock(LOCK_EX) is used to prevent
  interleaved output (from multiple concurrent install(8) operations).
- Improve parsing of owner and groups (e.g., strtoul() instead of atoi()),
  and don't rely upon uid==-1 to indicate "no owner"; use a flag instead.
- Make fileflags a global variable; uid, gid, and mode are, so lets be
  consistent...
- Improve -U (unpriv); work on file flags as well, and only try to change
  the file flags after the temporary file is renamed (since certain flags
  will prevent the rename from working).


To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 basesrc/usr.bin/xinstall/install.1
cvs rdiff -r1.49 -r1.50 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.