Subject: CVS commit: basesrc/usr.sbin/dev_mkdb
To: None <firstname.lastname@example.org>
From: Emmanuel Dreyfus <email@example.com>
Date: 07/12/2001 23:46:41
Module Name: basesrc
Committed By: manu
Date: Thu Jul 12 20:46:40 UTC 2001
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.