procuid option damages other fs options
Status: Beta
Brought to you by:
yossarian
--- subfs-0.9/subfs.c.orig 2004-02-27
01:54:58.000000000 +0300
+++ subfs-0.9/subfs.c 2006-01-13 13:30:15.000000000 +0300
@@ -150,8 +150,8 @@
sprintf(argv[4], "%lx", sfs_mnt->flags);
if (sfs_mnt->procuid) {
len = strlen(sfs_mnt->options);
- if (len == 0)
- len++;
+// if (len == 0)
+// len++;
add_procuid(sfs_mnt->options);
}
argv[5] = sfs_mnt->options;
@@ -159,7 +159,7 @@
free_page((unsigned long) path_buf);
kfree(argv[4]);
if (sfs_mnt->procuid)
- sfs_mnt->options[len - 1] = '\0';
+ sfs_mnt->options[len] = '\0';
return result;
}