summaryrefslogtreecommitdiff
path: root/usr.bin/mail/v7.local.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-05-04 05:37:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-05-04 05:37:54 +0000
commit7c88b13a799889e879308794cf19b7522908d8df (patch)
tree0fecff7fd89b96609ed82fda93e33ca1cd6a5b82 /usr.bin/mail/v7.local.c
parenta69cca63880811a6afaeb7a83b0dcc60b94ae4b0 (diff)
Never remove a mail spool, as we may not have proper prics, just truncate. Also block signals in a few critical areas
Diffstat (limited to 'usr.bin/mail/v7.local.c')
-rw-r--r--usr.bin/mail/v7.local.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mail/v7.local.c b/usr.bin/mail/v7.local.c
index 05f32a040d7..467df474c1d 100644
--- a/usr.bin/mail/v7.local.c
+++ b/usr.bin/mail/v7.local.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v7.local.c,v 1.9 1997/07/30 06:32:41 millert Exp $ */
+/* $OpenBSD: v7.local.c,v 1.10 1998/05/04 05:37:53 millert Exp $ */
/* $NetBSD: v7.local.c,v 1.8 1997/05/13 06:15:58 mikel Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)v7.local.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: v7.local.c,v 1.9 1997/07/30 06:32:41 millert Exp $";
+static char rcsid[] = "$OpenBSD: v7.local.c,v 1.10 1998/05/04 05:37:53 millert Exp $";
#endif
#endif /* not lint */
@@ -86,8 +86,8 @@ void
demail()
{
- if (value("keep") != NULL || rm(mailname) < 0)
- (void)close(creat(mailname, 0600));
+ if (value("keep") != NULL)
+ (void)truncate(mailname, 0);
}
/*