summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r--gnu/usr.bin/cvs/src/modules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/src/modules.c b/gnu/usr.bin/cvs/src/modules.c
index c588b71cd04..2e63f70d22b 100644
--- a/gnu/usr.bin/cvs/src/modules.c
+++ b/gnu/usr.bin/cvs/src/modules.c
@@ -1003,6 +1003,11 @@ cat_module (status)
wid = 0;
while ((c = getopt (argc, argv, CVSMODULE_OPTS)) != -1)
{
+ if (c == '?') {
+ error (0, 0, "invalid module line");
+ return;
+ }
+
if (!status)
{
if (c == 'a' || c == 'l')