projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 83/10/02 21:41:04 by sam
[unix-history]
/
usr
/
src
/
usr.bin
/
mail
/
fio.c
diff --git
a/usr/src/usr.bin/mail/fio.c
b/usr/src/usr.bin/mail/fio.c
index
b466317
..
baa616d
100644
(file)
--- a/
usr/src/usr.bin/mail/fio.c
+++ b/
usr/src/usr.bin/mail/fio.c
@@
-1,4
+1,6
@@
-#
+#ifndef lint
+static char sccsid[] = "@(#)fio.c 2.16 (Berkeley) %G%";
+#endif
#include "rcv.h"
#include <sys/stat.h>
#include "rcv.h"
#include <sys/stat.h>
@@
-10,8
+12,6
@@
* File I/O.
*/
* File I/O.
*/
-static char *SccsId = "@(#)fio.c 2.14 %G%";
-
/*
* Set up the input pointers while copying the mail file into
* /tmp.
/*
* Set up the input pointers while copying the mail file into
* /tmp.
@@
-352,11
+352,12
@@
edstop()
}
printf("\"%s\" ", editfile);
flush();
}
printf("\"%s\" ", editfile);
flush();
- if ((obuf = fopen(editfile, "
w
")) == NULL) {
+ if ((obuf = fopen(editfile, "
r+
")) == NULL) {
perror(editfile);
relsesigs();
reset(0);
}
perror(editfile);
relsesigs();
reset(0);
}
+ trunc(obuf);
c = 0;
for (mp = &message[0]; mp < &message[msgCount]; mp++) {
if ((mp->m_flag & MDELETED) != 0)
c = 0;
for (mp = &message[0]; mp < &message[msgCount]; mp++) {
if ((mp->m_flag & MDELETED) != 0)