#1149584 zip: "-q" option is listed in zipcloak help message, but it is not implemented

Package:
zip
Source:
zip
Description:
Archiver for .zip files
Submitter:
Date:
2026-10-01 09:59:02 UTC
Severity:
normal
#1149584#5
Date:
2026-10-01 06:41:33 UTC
From:
To:
In zipcloak.c, command-line parameters are managed via an options list. [1]
Currently, the definition for the quiet option (-q) is missing from this list,
which prevents it from being processed. However, running "zipcloak --help"
still displays the quiet flag.

```
$ zipcloak --help

ZipCloak 3.0 (July 5th 2008)
Usage:  zipcloak [-dq] [-b path] zipfile
  the default action is to encrypt all unencrypted entries in the zip file

  -d  --decrypt      decrypt encrypted entries (copy if given wrong password)
  -b  --temp-path    use "path" for the temporary zip file
  -O  --output-file  write output to new zip file
  -q  --quiet        quiet operation, suppress some informational messages
  -h  --help         show this help
  -v  --version      show version info
  -L  --license      show software license
$ zipcloak --quiet
zipcloak error: Invalid command arguments (long option 'quiet' not supported)
$ zipcloak -q
zipcloak error: Invalid command arguments (short option 'q' not supported)
```

Defining the quiet option in zipcloak.c in the same way as zip.c [2] resolves this issue.

```diff
@@ -295,6 +295,7 @@ struct option_struct far options[] = {
     {"l",  "",            o_NO_VALUE,       o_NOT_NEGATABLE, 'L',  "license"},
     {"O",  "output-file", o_REQUIRED_VALUE, o_NOT_NEGATABLE, 'O',  "output to new archive"},
     {"v",  "version",     o_NO_VALUE,       o_NOT_NEGATABLE, 'v',  "version"},
+    {"q",  "quiet",       o_NO_VALUE,       o_NOT_NEGATABLE, 'q',  "quiet"},
     /* the end of the list */
     {NULL, NULL,          o_NO_VALUE,       o_NOT_NEGATABLE, 0,    NULL} /* end has option_ID = 0 */
   };
```

[1] https://sources.debian.org/src/zip/3.0-16/zipcloak.c#L284
[2] https://sources.debian.org/src/zip/3.0-16/zip.c#L2169


Thanks.

#1149584#10
Date:
2026-10-01 09:58:18 UTC
From:
To:
Thanks  for taking the time to report this issue.

As it happens the upstream development sources for zipcloak already have the same fix checked in.