mirror of git://git.suckless.org/sbase
mount: loop until no opt options
values can be specified as 0 to ignore them Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
3c47a9a9d6
commit
ef1ab48699
2
mount.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue