From 4b9e4d3f5950fcbcc177c315058b6e335d8c4362 Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Wed, 26 Jun 2024 09:22:59 +0200 Subject: [PATCH] sys-utils/setpgid: make -f work f was missing from the getopt_long optstring so only --foreground was working, not -f. --- sys-utils/setpgid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/setpgid.c b/sys-utils/setpgid.c index 936991d65b..647654a077 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; -- 2.47.3