diff --git a/src/bin/copy.c b/src/bin/copy.c index 80235718..12e49e60 100644 --- a/src/bin/copy.c +++ b/src/bin/copy.c @@ -418,7 +418,7 @@ int main(int argc, char *argv[]) if (timeout < 0) timeout = 120; - if (optind >= argc) + if (argc - optind != 2) return usage(1); src = argv[optind++];