From: Emanuele Torre Date: Wed, 26 Jun 2024 07:22:59 +0000 (+0200) Subject: sys-utils/setpgid: make -f work X-Git-Tag: v2.42-start~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b9e4d3f5950fcbcc177c315058b6e335d8c4362;p=thirdparty%2Futil-linux.git sys-utils/setpgid: make -f work f was missing from the getopt_long optstring so only --foreground was working, not -f. --- diff --git a/sys-utils/setpgid.c b/sys-utils/setpgid.c index 936991d65..647654a07 100644 --- a/sys-utils/setpgid.c +++ b/sys-utils/setpgid.c @@ -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;