]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-mount-sloppy.patch
- patches from fedora (details in patches if not obvious)
[packages/util-linux.git] / util-linux-mount-sloppy.patch
CommitLineData
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) {
9- const char *oo, *mountargs[10];
10+ const char *oo, *mountargs[12];
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)
This page took 0.034202 seconds and 4 git commands to generate.