}
}
// Unrecognized mount option?
- if(i == sizeof(mount_options)) {
+ if(i == (sizeof(mount_options) / sizeof(*mount_options))) {
// Add it to strflags, to pass on to kernel
i = *strflags ? strlen(*strflags) : 0;
*strflags = xrealloc(*strflags, i+strlen(options)+2);
// Comma separated if it's not the first one
- if(i) (*strflags)[i] = ',';
+ if(i) (*strflags)[i++] = ',';
strcpy((*strflags)+i, options);
}
// Advance to next option, or finish
else {
rc = 0;
fsType="nfs";
+ // Strangely enough, nfsmount() doesn't actually mount()
+ goto mount_it_now;
}
} else {