diff options
author | peter <peter@FreeBSD.org> | 1995-12-18 18:58:00 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-12-18 18:58:00 +0000 |
commit | 6fb31f3d8c2056be1dd893fd047b3a816a69498e (patch) | |
tree | 25da902401bf09386f2dac85717581ce87e394e3 /gnu | |
parent | c8284336937a84873e44f654e4bdfc69e73c6fa9 (diff) | |
download | FreeBSD-src-6fb31f3d8c2056be1dd893fd047b3a816a69498e.zip FreeBSD-src-6fb31f3d8c2056be1dd893fd047b3a816a69498e.tar.gz |
A one line hack to prevent 'cvs checkout -c' from triggering a nasty bug
in GNU getopt(). ('cvs checkout -c' cats the modules file to stdout)
Noticed by: Stefan Esser
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cvs/cvs/modules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/cvs/modules.c b/gnu/usr.bin/cvs/cvs/modules.c index 528287a..5946052 100644 --- a/gnu/usr.bin/cvs/cvs/modules.c +++ b/gnu/usr.bin/cvs/cvs/modules.c @@ -818,7 +818,7 @@ cat_module (status) argc = moduleargc; argv = moduleargv; - optind = 1; + optind = 0; wid = 0; while ((c = getopt (argc, argv, CVSMODULE_OPTS)) != -1) { |