]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xzdec: Remove unused short option -M
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 16 Sep 2024 20:04:40 +0000 (22:04 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 18 Sep 2024 17:53:11 +0000 (20:53 +0300)
"xzdec -M123" exited with exit status 1 without printing
any messages. The "M:" entry should have been removed when
the memory usage limiter support was removed from xzdec.

Fixes: 792331bdee706aa852a78b171040ebf814c6f3ae
Closes: https://github.com/tukaani-project/xz/pull/143
[ Lasse: Commit message edits ]

(cherry picked from commit 78355aebb7fb654302e5e33692ba109909dacaff)

src/xzdec/xzdec.c

index 4d881748b2e49c0e79743e1ae234d0369cb42195..a75ea42a52fb0a535efd5b82bfe08dbbcabb31cb 100644 (file)
@@ -124,7 +124,7 @@ version(void)
 static void
 parse_options(int argc, char **argv)
 {
-       static const char short_opts[] = "cdkM:hqQV";
+       static const char short_opts[] = "cdkhqQV";
        static const struct option long_opts[] = {
                { "stdout",       no_argument,         NULL, 'c' },
                { "to-stdout",    no_argument,         NULL, 'c' },