]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sys-utils/setpgid: make -f work
authorEmanuele Torre <torreemanuele6@gmail.com>
Wed, 26 Jun 2024 07:22:59 +0000 (09:22 +0200)
committerEmanuele Torre <torreemanuele6@gmail.com>
Wed, 26 Jun 2024 07:22:59 +0000 (09:22 +0200)
f  was missing from the getopt_long optstring so only --foreground was
working, not -f.

sys-utils/setpgid.c

index 936991d65bbe86a49742136e072f1e78c7036c00..647654a0779fd5f6adfff8bf4fab642be5fda384 100644 (file)
@@ -49,7 +49,7 @@ int main(int argc, char **argv)
        textdomain(PACKAGE);
        close_stdout_atexit();
 
-       while ((ch = getopt_long(argc, argv, "+Vh", longopts, NULL)) != -1)
+       while ((ch = getopt_long(argc, argv, "+fVh", longopts, NULL)) != -1)
                switch (ch) {
                case 'f':
                        foreground = 1;