From efd645f1ca0bb997a955457c7da9f24fefdfaac0 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Fri, 10 Apr 1998 20:19:24 +0000 Subject: [PATCH] Fixed an off-by-one error; removerez would abort with the usage message if only one filename was given. --- usr.bin/removerez/removerez.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/removerez/removerez.c b/usr.bin/removerez/removerez.c index ff4f061..4d5834e 100644 --- a/usr.bin/removerez/removerez.c +++ b/usr.bin/removerez/removerez.c @@ -4,7 +4,7 @@ * * Devin Reade, February 1998 * - * $Id: removerez.c,v 1.1 1998/03/31 03:32:59 gdr-ftp Exp $ + * $Id: removerez.c,v 1.2 1998/04/10 20:19:24 gdr-ftp Exp $ */ #define __USE_DYNAMIC_GSSTRING__ @@ -46,7 +46,7 @@ main (int argc, char **argv) { usage = 1; } } - if (usage || (argc-optind)<2) { + if (usage || (argc-optind)<1) { errx(EXIT_FAILURE, "usage: %s file [...]\n", argv[0]); } for (i=optind; i