summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-03-12 13:51:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-03-12 13:51:40 +0000
commit10bb0e481ca4790ed5e08689aa20036d3207b7f7 (patch)
tree4d7f620a81ca28aea0f96cb60228868dfd016535 /src
parentf34c562adf43b9df9206464be7aafa2f0ec231df (diff)
downloads6-linux-utils-10bb0e481ca4790ed5e08689aa20036d3207b7f7.tar.gz
s6-linux-utils-10bb0e481ca4790ed5e08689aa20036d3207b7f7.tar.xz
s6-linux-utils-10bb0e481ca4790ed5e08689aa20036d3207b7f7.zip
s6-mount bugfix: better parsing of -o options
Diffstat (limited to 'src')
-rw-r--r--src/minutils/s6-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minutils/s6-mount.c b/src/minutils/s6-mount.c
index b6ac674..bb6db81 100644
--- a/src/minutils/s6-mount.c
+++ b/src/minutils/s6-mount.c
@@ -16,7 +16,7 @@
 
 #define SWITCH(opt) do
 #define HCTIWS(opt) while(0) ;
-#define CASE(s) if (!str_diffn(opt, (s), str_len(s)))
+#define CASE(s) if (n == sizeof(s) - 1 && !str_diffn(opt, (s), n))
 
 static void scanopt (stralloc *data, unsigned long *flags, char const *opt)
 {