Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: basesrc/usr.sbin/dev_mkdb
Module Name: basesrc
Committed By: manu
Date: Thu Jul 12 20:46:40 UTC 2001
Modified Files:
basesrc/usr.sbin/dev_mkdb: dev_mkdb.c
Log Message:
FIxed a problem with string length (a leading / was appearing in w, who and
others)
We were using rename() to create the target file from the temp file. Now the
temp file is created in the same directory of the targer file so that rename()
will always work (it needs to have the files in the same filesystem)
Using the -o file, the output file may be on a world writable directory, we
hence open the temporary file using O_EXCL, and we loop trying different names
until it works.
To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 basesrc/usr.sbin/dev_mkdb/dev_mkdb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index