]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-mount-sloppy.patch
- obsoleted by util-linux-ng
[packages/util-linux.git] / util-linux-mount-sloppy.patch
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 -                char *oo, *mountargs[10];
10 +                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.060498 seconds and 3 git commands to generate.