summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-05-20 14:35:59 +0000
committerLaurent Bercot <ska@appnovation.com>2022-05-20 14:35:59 +0000
commitdb5bf6b28e46da0305d13383201e3dfbf2e80178 (patch)
treec56ab55694c4adf1884335a58ecbe955cae0469c
parent9aa0c8c2f34b42e671d6418bd2cc95c79d3b7d54 (diff)
downloadexecline-db5bf6b28e46da0305d13383201e3dfbf2e80178.tar.xz
bugfix: getpid didn't read -P|-p
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--AUTHORS1
-rw-r--r--src/execline/getpid.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 8a6295b..f039bb8 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -25,3 +25,4 @@ Thanks to:
Éric Vidal <eric@obarun.org
Samuel Holland <samuel@sholland.org>
Profpatsch <mail@profpatsch.de>
+ Guillermo <gdiazhartusch@gmail.com>
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)
{