From 525ce5a2b4f8729e63147211f006f764522ee5c4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 24 Dec 1996 19:42:04 +0000 Subject: comment on why this mktemp use is safe --- libexec/mail.local/mail.local.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c index 28386905258..6fde3c16986 100644 --- a/libexec/mail.local/mail.local.c +++ b/libexec/mail.local/mail.local.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";*/ -static char rcsid[] = "$Id: mail.local.c,v 1.8 1996/10/16 06:30:56 millert Exp $"; +static char rcsid[] = "$Id: mail.local.c,v 1.9 1996/12/24 19:42:03 deraadt Exp $"; #endif /* not lint */ #include @@ -234,6 +234,7 @@ baditem(path) if (rename(path, npath) != -1) err(NOTFATAL, "nasty spool item %s renamed to %s", path, npath); + /* XXX if we fail to rename, another attempt will happen later */ } char lpath[MAXPATHLEN]; -- cgit v1.2.3