Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax fix "pax -rw" processing. for some reason, it was n...
details: https://anonhg.NetBSD.org/src/rev/fde4d9a017cf
branches: trunk
changeset: 538163:fde4d9a017cf
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Oct 13 11:31:02 2002 +0000
description:
fix "pax -rw" processing. for some reason, it was now written to process
"pax -rwvpe a b" as "pax -rwvpe b a", and "pax -rwvpe a b c" as
"pax -rwvpe b c a". only the part of revision 1.40 that broken this has
been reverted.
diffstat:
bin/pax/options.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r a9667353cc0e -r fde4d9a017cf bin/pax/options.c
--- a/bin/pax/options.c Sun Oct 13 11:20:37 2002 +0000
+++ b/bin/pax/options.c Sun Oct 13 11:31:02 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: options.c,v 1.41 2002/10/13 00:32:09 mrg Exp $ */
+/* $NetBSD: options.c,v 1.42 2002/10/13 11:31:02 mrg Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: options.c,v 1.41 2002/10/13 00:32:09 mrg Exp $");
+__RCSID("$NetBSD: options.c,v 1.42 2002/10/13 11:31:02 mrg Exp $");
#endif
#endif /* not lint */
@@ -613,7 +613,8 @@
tty_warn(0, "Destination directory was not supplied");
pax_usage();
}
- dirptr = argv[optind++];
+ --argc;
+ dirptr = argv[argc];
if (mkpath(dirptr) < 0)
cpio_usage();
/* FALLTHROUGH */
Home |
Main Index |
Thread Index |
Old Index