diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-10 14:59:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-10 14:59:04 +0000 |
commit | 9b652d07908093aa22a975843525d2f5abc79161 (patch) | |
tree | 8b59dcf712faf4063f2d2289706b76406abfe123 | |
parent | 8a7f744635f353e8d047c1b0cd97d0237e5a6b88 (diff) | |
download | coreutils-9b652d07908093aa22a975843525d2f5abc79161.tar.xz |
Handle argc < optind.
-rw-r--r-- | src/chroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chroot.c b/src/chroot.c index cbec705c2..421e5212d 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -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); |