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
missing bounds check
[unix-history]
/
usr
/
src
/
old
/
dump.4.1
/
dumpmain.c
diff --git
a/usr/src/old/dump.4.1/dumpmain.c
b/usr/src/old/dump.4.1/dumpmain.c
index
c89dd92
..
c6d9102
100644
(file)
--- a/
usr/src/old/dump.4.1/dumpmain.c
+++ b/
usr/src/old/dump.4.1/dumpmain.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)dumpmain.c 1.
1
(Berkeley) %G%";
+static char *sccsid = "@(#)dumpmain.c 1.
2
(Berkeley) %G%";
#include "dump.h"
int notify = 0; /* notify operator flag */
#include "dump.h"
int notify = 0; /* notify operator flag */
@@
-34,8
+34,12
@@
main(argc, argv)
}
while(*arg)
switch (*arg++) {
}
while(*arg)
switch (*arg++) {
+ case 'w':
+ lastdump('w'); /* tell us only what has to be done */
+ exit(0);
+ break;
case 'W': /* what to do */
case 'W': /* what to do */
- lastdump(
);
+ lastdump(
'W'); /* tell us the current state of what has been done */
exit(0); /* do nothing else */
break;
exit(0); /* do nothing else */
break;