diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-05-20 14:35:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-05-20 14:35:59 +0000 |
commit | db5bf6b28e46da0305d13383201e3dfbf2e80178 (patch) | |
tree | c56ab55694c4adf1884335a58ecbe955cae0469c | |
parent | 9aa0c8c2f34b42e671d6418bd2cc95c79d3b7d54 (diff) | |
download | execline-db5bf6b28e46da0305d13383201e3dfbf2e80178.tar.gz execline-db5bf6b28e46da0305d13383201e3dfbf2e80178.tar.xz execline-db5bf6b28e46da0305d13383201e3dfbf2e80178.zip |
bugfix: getpid didn't read -P|-p
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/execline/getpid.c | 2 |
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) { |