wok-next view busybox/stuff/busybox-1.20-nfs-segfault.u @ rev 13806
Up: gimp-brushes
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Jan 06 05:39:53 2013 +0300 (2013-01-06) |
parents | 77850ece4ff6 |
children |
line source
1 --- a/util-linux/mount.c
2 +++ b/util-linux/mount.c
3 @@ -320,9 +320,6 @@
6 struct globals {
7 -#if ENABLE_FEATURE_MOUNT_NFS
8 - smalluint nfs_mount_version;
9 -#endif
10 #if ENABLE_FEATURE_MOUNT_VERBOSE
11 unsigned verbose;
12 #endif
13 @@ -331,7 +328,7 @@
14 } FIX_ALIASING;
15 enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) };
16 #define G (*(struct globals*)&bb_common_bufsiz1)
17 -#define nfs_mount_version (G.nfs_mount_version)
18 +#define nfs_mount_version 4 /* assume kernel>= 2.4, use v4 nfs mount protocol */
19 #if ENABLE_FEATURE_MOUNT_VERBOSE
20 #define verbose (G.verbose )
21 #else
22 @@ -972,7 +969,8 @@
23 static void
24 find_kernel_nfs_mount_version(void)
25 {
26 - int kernel_version;
27 +#if 0
28 + int kernel_version;
30 if (nfs_mount_version)
31 return;
32 @@ -985,6 +983,7 @@
33 nfs_mount_version = 3;
34 /* else v4 since 2.3.99pre4 */
35 }
36 +#endif
37 }
39 static void