]>
Commit | Line | Data |
---|---|---|
5545a732 JR |
1 | - mount not allowing sloppy option |
2 | ||
3 | --- util-linux-2.13-pre6/mount/mount.c.sloppy 2006-09-15 08:39:53.000000000 +0200 | |
4 | +++ util-linux-2.13-pre6/mount/mount.c 2006-09-15 08:43:24.000000000 +0200 | |
5 | @@ -554,7 +554,7 @@ | |
6 | if (stat(mountprog, &statbuf) == 0) { | |
7 | res = fork(); | |
8 | if (res == 0) { | |
3dc611c6 JR |
9 | - char *oo, *mountargs[10]; |
10 | + char *oo, *mountargs[12]; | |
5545a732 JR |
11 | int i = 0; |
12 | ||
13 | setuid(getuid()); | |
14 | @@ -563,6 +563,8 @@ | |
15 | mountargs[i++] = mountprog; | |
16 | mountargs[i++] = spec; | |
17 | mountargs[i++] = node; | |
18 | + if (sloppy && (strcmp(type, "nfs")==0 || strcmp(type, "nfs4")==0)) | |
19 | + mountargs[i++] = "-s"; | |
20 | if (nomtab) | |
21 | mountargs[i++] = "-n"; | |
22 | if (verbose) |