Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/restore Force -t or -N flag disables -u flag (but -t ca...
details: https://anonhg.NetBSD.org/src/rev/b2d31dd2d861
branches: trunk
changeset: 487564:b2d31dd2d861
user: enami <enami%NetBSD.org@localhost>
date: Fri Jun 09 09:05:02 2000 +0000
description:
Force -t or -N flag disables -u flag (but -t case is just for sanity).
diffstat:
sbin/restore/main.c | 7 +++++--
sbin/restore/restore.8 | 7 ++++++-
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r ebd7c9650022 -r b2d31dd2d861 sbin/restore/main.c
--- a/sbin/restore/main.c Fri Jun 09 08:54:19 2000 +0000
+++ b/sbin/restore/main.c Fri Jun 09 09:05:02 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.19 1999/11/09 15:06:33 drochner Exp $ */
+/* $NetBSD: main.c,v 1.20 2000/06/09 09:05:02 enami Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.19 1999/11/09 15:06:33 drochner Exp $");
+__RCSID("$NetBSD: main.c,v 1.20 2000/06/09 09:05:02 enami Exp $");
#endif
#endif /* not lint */
@@ -171,6 +171,9 @@
if (command == '\0')
errx(1, "none of i, R, r, t or x options specified");
+ if (Nflag || command == 't')
+ uflag = 0;
+
if (signal(SIGINT, onintr) == SIG_IGN)
(void) signal(SIGINT, SIG_IGN);
if (signal(SIGTERM, onintr) == SIG_IGN)
diff -r ebd7c9650022 -r b2d31dd2d861 sbin/restore/restore.8
--- a/sbin/restore/restore.8 Fri Jun 09 08:54:19 2000 +0000
+++ b/sbin/restore/restore.8 Fri Jun 09 09:05:02 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: restore.8,v 1.30 2000/05/23 04:35:32 enami Exp $
+.\" $NetBSD: restore.8,v 1.31 2000/06/09 09:05:02 enami Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -339,6 +339,11 @@
(unlink)
flag removes files before extracting them.
This is useful when an executable file is in use.
+Ignored if
+.Fl t
+or
+.Fl N
+flag is given.
.It Fl v
Normally
.Nm
Home |
Main Index |
Thread Index |
Old Index