SCCS-vsn: sbin/shutdown/shutdown.c 4.19
SCCS-vsn: usr.bin/mail/fio.c 2.15
-static char *sccsid = "@(#)shutdown.c 4.18 (Berkeley) 83/06/02";
+static char *sccsid = "@(#)shutdown.c 4.19 (Berkeley) 83/06/17";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
if (shutter)
fprintf(term,
if (shutter)
fprintf(term,
- "\007\007\t*** %sSystem shutdown message from %s!%s ***\r\n\n",
- type, hostname, shutter);
+ "\007\007\t*** %sSystem shutdown message from %s@%s ***\r\n\n",
+ type, shutter, hostname);
else
fprintf(term,
"\007\007\t*** %sSystem shutdown message (%s) ***\r\n\n",
else
fprintf(term,
"\007\007\t*** %sSystem shutdown message (%s) ***\r\n\n",
-static char *SccsId = "@(#)fio.c 2.14 %G%";
+static char *SccsId = "@(#)fio.c 2.15 %G%";
/*
* Set up the input pointers while copying the mail file into
/*
* Set up the input pointers while copying the mail file into
}
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);
}
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)