about summary refs log tree commit diff
path: root/src/daemontools-extras
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-02-27 00:47:51 +0000
committerLaurent Bercot <ska@appnovation.com>2022-02-27 00:47:51 +0000
commitb4070f01c00a07d4f2df6a3ff85eb6f2b1386b84 (patch)
tree1f39d639b5a8c6bc17326c3a14d30d6015081c4b /src/daemontools-extras
parent17a7d5f052aea7d9d79464dd4d4e4ab1b1b8f3c1 (diff)
downloads6-b4070f01c00a07d4f2df6a3ff85eb6f2b1386b84.tar.gz
s6-b4070f01c00a07d4f2df6a3ff85eb6f2b1386b84.tar.xz
s6-b4070f01c00a07d4f2df6a3ff85eb6f2b1386b84.zip
Add noclamp option to s6-envdir
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/daemontools-extras')
-rw-r--r--src/daemontools-extras/s6-envdir.c5
1 files changed, 3 insertions, 2 deletions
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 <skalibs/env.h>
 #include <skalibs/exec.h>
 
-#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) ;
     }