From db5bf6b28e46da0305d13383201e3dfbf2e80178 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 20 May 2022 14:35:59 +0000 Subject: bugfix: getpid didn't read -P|-p Signed-off-by: Laurent Bercot --- AUTHORS | 1 + src/execline/getpid.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 8a6295b..f039bb8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -25,3 +25,4 @@ Thanks to: Éric Vidal Profpatsch + Guillermo diff --git a/src/execline/getpid.c b/src/execline/getpid.c index 058fe1b..be9b6b8 100644 --- a/src/execline/getpid.c +++ b/src/execline/getpid.c @@ -22,7 +22,7 @@ int main (int argc, char const *const *argv) subgetopt l = SUBGETOPT_ZERO ; for (;;) { - int opt = subgetopt_r(argc, argv, "Ee", &l) ; + int opt = subgetopt_r(argc, argv, "EePp", &l) ; if (opt == -1) break ; switch (opt) { -- cgit v1.3.1