commit ef1ab486994e92164b351245530e842ed93e3097
parent 3c47a9a9d677c067a8d96ef97818f01230520e1a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 5 Apr 2014 11:56:04 +0200
mount: loop until no opt options
values can be specified as 0 to ignore them
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mount.c b/mount.c
@@ -40,7 +40,7 @@ parseopts(char *popts, unsigned long *flags, char *data, size_t datasiz)
data[0] = '\0';
for(name = strtok(popts, ","); name; name = strtok(NULL, ",")) {
validopt = 0;
- for(i = 0; optnames[i].v; i++) {
+ for(i = 0; optnames[i].opt; i++) {
if(optnames[i].opt && strcmp(name, optnames[i].opt) == 0) {
*flags |= optnames[i].v;
validopt = 1;