summaryrefslogtreecommitdiff
path: root/usr.bin/mail/temp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-11 12:54:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-11 12:54:26 +0000
commit1c5940ab5503bf389f03195f3d01a93353919abb (patch)
treea1e9691c11b7f36906f0943dc7d8464a56b98adc /usr.bin/mail/temp.c
parent5f733ec731243d90e1e65f27ce29e683e7a253a6 (diff)
from christos;
- Fix PR/105: Implement dot locking protocol and check return value of flock. - Fix PR/2247: Don't call unknown users "ubluit". Issue an error message. - Fix/add prototypes. - Fix warnings. - Use POSIX signal mask calls.
Diffstat (limited to 'usr.bin/mail/temp.c')
-rw-r--r--usr.bin/mail/temp.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/mail/temp.c b/usr.bin/mail/temp.c
index 6736aefac91..90373e0b091 100644
--- a/usr.bin/mail/temp.c
+++ b/usr.bin/mail/temp.c
@@ -1,3 +1,6 @@
+/* $OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $ */
+/* $NetBSD: temp.c,v 1.5 1996/06/08 19:48:42 christos Exp $ */
+
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,8 +35,11 @@
*/
#ifndef lint
-static char sccsid[] = "from: @(#)temp.c 8.1 (Berkeley) 6/6/93";
-static char rcsid[] = "$Id: temp.c,v 1.1 1995/10/18 08:45:39 deraadt Exp $";
+#if 0
+static char sccsid[] = "@(#)temp.c 8.1 (Berkeley) 6/6/93";
+#else
+static char rcsid[] = "$OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $";
+#endif
#endif /* not lint */
#include "rcv.h"
@@ -57,7 +63,6 @@ void
tinit()
{
register char *cp;
- int len;
if ((tmpdir = getenv("TMPDIR")) == NULL) {
tmpdir = _PATH_TMP;
@@ -81,11 +86,9 @@ tinit()
}
} else {
if ((cp = username()) == NOSTR) {
- myname = "ubluit";
- if (rcvmode) {
- printf("Who are you!?\n");
+ myname = "nobody";
+ if (rcvmode)
exit(1);
- }
} else
myname = savestr(cp);
}