From: deraadt Date: Tue, 24 Dec 1996 19:42:03 +0000 (+0000) Subject: comment on why this mktemp use is safe X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=558c54392a5501a0573bfdf292817c517d7a4c77;p=openbsd comment on why this mktemp use is safe --- 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];