diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-03-12 13:51:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-03-12 13:51:40 +0000 |
commit | 10bb0e481ca4790ed5e08689aa20036d3207b7f7 (patch) | |
tree | 4d7f620a81ca28aea0f96cb60228868dfd016535 | |
parent | f34c562adf43b9df9206464be7aafa2f0ec231df (diff) | |
download | s6-linux-utils-10bb0e481ca4790ed5e08689aa20036d3207b7f7.tar.xz |
s6-mount bugfix: better parsing of -o options
-rw-r--r-- | src/minutils/s6-mount.c | 2 |
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) { |