diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 22:51:54 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 22:51:54 +0000 |
commit | 61ba8f206c1755c8754277e40ac95c89a2dbbbb8 (patch) | |
tree | 2800aa0cf0e9c9fde1dc846cef8af5466a9e4ad0 | |
parent | 120c196e860c6ad6b4897645bd87423d14a1adb6 (diff) |
Fix bug introduced with "exit(0) if no files" behavior change.
-rw-r--r-- | bin/pax/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index 23ae6cf9927..ec4324c6da4 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.20 1997/04/05 22:36:14 millert Exp $ */ +/* $OpenBSD: options.c,v 1.21 1997/04/05 22:51:53 millert Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.20 1997/04/05 22:36:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.21 1997/04/05 22:51:53 millert Exp $"; #endif #endif /* not lint */ @@ -794,7 +794,7 @@ tar_options(argc, argv) argv += optind; /* Traditional tar behaviour (pax wants to read filelist from stdin) */ - if (argc == 0) + if ((act == ARCHIVE || act == APPND) && argc == 0) exit(0); /* |