]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Handle argc < optind.
authorJim Meyering <jim@meyering.net>
Sat, 10 May 2003 14:59:04 +0000 (14:59 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 May 2003 14:59:04 +0000 (14:59 +0000)
src/chroot.c

index cbec705c2d0b5b294637c946f3eaef96f9f53f0c..421e5212de73ee77742babe2aac18ab0745deba0 100644 (file)
@@ -1,5 +1,5 @@
 /* chroot -- run command or shell with special root directory
-   Copyright (C) 95, 96, 1997, 1999-2002 Free Software Foundation, Inc.
+   Copyright (C) 95, 96, 1997, 1999-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -73,7 +73,7 @@ main (int argc, char **argv)
 
   parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      AUTHORS, usage);
-  if (argc == 1)
+  if (argc <= 1)
     {
       error (0, 0, _("too few arguments"));
       usage (EXIT_FAILURE);