From 558c54392a5501a0573bfdf292817c517d7a4c77 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 24 Dec 1996 19:42:03 +0000 Subject: [PATCH] comment on why this mktemp use is safe --- libexec/mail.local/mail.local.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.20.1