summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-04 18:41:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-04 18:41:47 +0000
commit4cb76026747c1c4f9db0090c18888232ece673b0 (patch)
tree602a27b829dddac7decfb4066bdb458d30c95786 /libexec
parent18423be53229bf49c861cdd4941144cdb72d7585 (diff)
when mktemp() is hard to fix, use 10 X
Diffstat (limited to 'libexec')
-rw-r--r--libexec/mail.local/mail.local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c
index a1d38550953..e216ba3ed83 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.14 1997/03/29 02:59:56 millert Exp $";
+static char rcsid[] = "$Id: mail.local.c,v 1.15 1997/04/04 18:41:27 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -231,7 +231,7 @@ baditem(path)
if (unlink(path) == 0)
return;
- snprintf(npath, sizeof npath, "%s/XXXXXXXXX", _PATH_MAILDIR);
+ snprintf(npath, sizeof npath, "%s/mailXXXXXXXXXX", _PATH_MAILDIR);
if (mktemp(npath) == NULL)
return;
if (rename(path, npath) != -1)