diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-10-04 20:32:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-10-04 20:32:28 +0000 |
commit | ab3e79a9bdb6149377d5ff4cad895b1cf1837c2b (patch) | |
tree | 62f1ee443caa152e400ca25326e02348f333cbfe /bin/dd/args.c | |
parent | ae0af87072a52028a89ef7da9919222b248d75b7 (diff) |
Move check for count=0 into dd's main. We want to do normal setup
in this case and just don't want to actually copy any data.
Fixes a problem noted by aaron@ where the time portion of the summary
would be wrong and also gives us sane behavior when seek is non-zero
but count is 0.
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r-- | bin/dd/args.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 95e4979601c..ed3522cd647 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -1,4 +1,4 @@ -/* $OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $ */ +/* $OpenBSD: args.c,v 1.10 2001/10/04 20:32:27 millert Exp $ */ /* $NetBSD: args.c,v 1.7 1996/03/01 01:18:58 jtc Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $"; +static char rcsid[] = "$OpenBSD: args.c,v 1.10 2001/10/04 20:32:27 millert Exp $"; #endif #endif /* not lint */ @@ -212,8 +212,6 @@ f_count(arg) { cpy_cnt = get_bsz(arg); - if (!cpy_cnt) - terminate(0); } static void |