From b4070f01c00a07d4f2df6a3ff85eb6f2b1386b84 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 27 Feb 2022 00:47:51 +0000 Subject: Add noclamp option to s6-envdir Signed-off-by: Laurent Bercot --- src/daemontools-extras/s6-envdir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/daemontools-extras/s6-envdir.c b/src/daemontools-extras/s6-envdir.c index 4c297ea..9b98b4a 100644 --- a/src/daemontools-extras/s6-envdir.c +++ b/src/daemontools-extras/s6-envdir.c @@ -8,7 +8,7 @@ #include #include -#define USAGE "s6-envdir [ -I | -i ] [ -n ] [ -f ] [ -c nullchar ] dir prog..." +#define USAGE "s6-envdir [ -I | -i ] [ -n ] [ -f ] [ -L ] [ -c nullchar ] dir prog..." int main (int argc, char const *const *argv) { @@ -20,7 +20,7 @@ int main (int argc, char const *const *argv) PROG = "s6-envdir" ; for (;;) { - int opt = subgetopt_r(argc, argv, "Iinfc:", &l) ; + int opt = subgetopt_r(argc, argv, "IinfLc:", &l) ; if (opt == -1) break ; switch (opt) { @@ -28,6 +28,7 @@ int main (int argc, char const *const *argv) case 'i' : insist = 1 ; break ; case 'n' : options |= SKALIBS_ENVDIR_NOCHOMP ; break ; case 'f' : options |= SKALIBS_ENVDIR_VERBATIM ; break ; + case 'L' : options |= SKALIBS_ENVDIR_NOCLAMP ; break ; case 'c' : nullis = *l.arg ; break ; default : strerr_dieusage(100, USAGE) ; } -- cgit v1.2.3