]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mute-console: remove unimplemented option
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 6 Oct 2025 10:42:27 +0000 (12:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Oct 2025 14:11:39 +0000 (16:11 +0200)
```
$ build/systemd-mute-console -q
Code should not be reached at src/mute-console/mute-console.c:103, function parse_argv(). Aborting. ðŸ’¥
Aborted (core dumped)
```

src/mute-console/mute-console.c

index 7f0b211d3f5ea227c9c33403018f024e39bda524..4a4449877729c1cae7c66871aa13aeef6dee1e33 100644 (file)
@@ -72,7 +72,7 @@ static int parse_argv(int argc, char *argv[]) {
         assert(argc >= 0);
         assert(argv);
 
-        while ((c = getopt_long(argc, argv, "hq", options, NULL)) >= 0) {
+        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) {
 
                 switch (c) {