diff options
author | jkh <jkh@FreeBSD.org> | 1998-05-09 05:23:02 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-05-09 05:23:02 +0000 |
commit | dcef58e481f6117f1a23a399e64de7f78db3e227 (patch) | |
tree | 3159d92312f9ac1cf1e86c128b9eb593b5fe4418 /sbin/restore/main.c | |
parent | 9c0f3d45b1a8df168ca3c201cafeb4775fc523be (diff) | |
download | FreeBSD-src-dcef58e481f6117f1a23a399e64de7f78db3e227.zip FreeBSD-src-dcef58e481f6117f1a23a399e64de7f78db3e227.tar.gz |
Well, nobody objected, so here's my -u (unlink) flag to restore.
Diffstat (limited to 'sbin/restore/main.c')
-rw-r--r-- | sbin/restore/main.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sbin/restore/main.c b/sbin/restore/main.c index 6cb87d8..3bc4e8b3 100644 --- a/sbin/restore/main.c +++ b/sbin/restore/main.c @@ -62,6 +62,7 @@ static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95"; int bflag = 0, cvtflag = 0, dflag = 0, vflag = 0, yflag = 0; int hflag = 1, mflag = 1, Nflag = 0; +int uflag = 0; int dokerberos = 0; char command = '\0'; long dumpnum = 1; @@ -98,9 +99,9 @@ main(argc, argv) inputdev = _PATH_DEFTAPE; obsolete(&argc, &argv); #ifdef KERBEROS -#define optlist "b:cdf:hikmNRrs:tvxy" +#define optlist "b:cdf:hikmNRrs:tuvxy" #else -#define optlist "b:cdf:himNRrs:tvxy" +#define optlist "b:cdf:himNRrs:tuvxy" #endif while ((ch = getopt(argc, argv, optlist)) != -1) switch(ch) { @@ -155,6 +156,9 @@ main(argc, argv) if (dumpnum <= 0) errx(1, "dump number must be greater than 0"); break; + case 'u': + uflag = 1; + break; case 'v': vflag = 1; break; @@ -289,11 +293,11 @@ static void usage() { (void)fprintf(stderr, "usage:\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n", - "restore -i [-chkmvy] [-b blocksize] [-f file] [-s fileno]", - "restore -r [-ckvy] [-b blocksize] [-f file] [-s fileno]", - "restore -R [-ckvy] [-b blocksize] [-f file] [-s fileno]", - "restore -x [-chkmvy] [-b blocksize] [-f file] [-s fileno] [file ...]", - "restore -t [-chkvy] [-b blocksize] [-f file] [-s fileno] [file ...]"); + "restore -i [-chkmuvy] [-b blocksize] [-f file] [-s fileno]", + "restore -r [-ckuvy] [-b blocksize] [-f file] [-s fileno]", + "restore -R [-ckuvy] [-b blocksize] [-f file] [-s fileno]", + "restore -x [-chkmuvy] [-b blocksize] [-f file] [-s fileno] [file ...]", + "restore -t [-chkuvy] [-b blocksize] [-f file] [-s fileno] [file ...]"); done(1); } |