diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-10 14:58:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-10 14:58:15 +0000 |
commit | 8a7f744635f353e8d047c1b0cd97d0237e5a6b88 (patch) | |
tree | fb0e48fd992085f67a7c8b220546ca83c7956d5c /src | |
parent | ddc5610b887020e33838ed0d7ef54a952684e4e9 (diff) | |
download | coreutils-8a7f744635f353e8d047c1b0cd97d0237e5a6b88.tar.xz |
Handle argc < optind.
Diffstat (limited to 'src')
-rw-r--r-- | src/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* tty -- print the path of the terminal connected to standard input - Copyright (C) 1990-2002 Free Software Foundation, Inc. + Copyright (C) 1990-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 @@ -108,7 +108,7 @@ main (int argc, char **argv) } } - if (optind != argc) + if (optind < argc) error (0, 0, _("ignoring all arguments")); tty = ttyname (0); |