diff options
author | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-15 20:12:29 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-15 20:12:29 -0400 |
commit | 964b5869aff16b147431aa4e52c70a99d1521bb3 (patch) | |
tree | 4596366ae33a3bed28944886e738cbad08793471 /src | |
parent | c787006ee3742ee8384210c4355f73aef7c8d0b8 (diff) |
touch up
Diffstat (limited to 'src')
-rw-r--r-- | src/cow-dedupe-range.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cow-dedupe-range.c b/src/cow-dedupe-range.c index 7508f04..33d62b0 100644 --- a/src/cow-dedupe-range.c +++ b/src/cow-dedupe-range.c @@ -67,12 +67,16 @@ int main(int argc, char *argv[]) { assert(false); } } - if (argc - optind < 5) { error(0, 0, "too few arguments"); fprintf(stderr, "Try '%s --help' for more information.\n", program_invocation_name); return 2; } + if ((argc - optind - 3) % 2 != 0) { + error(0, 0, "wrong number of arguments"); + fprintf(stderr, "Try '%s --help' for more information.\n", program_invocation_name); + return 2; + } struct range src; src.filename = argv[optind]; |