1 |
vapier 09/01/31 22:20:24 |
2 |
|
3 |
Added: nfs-utils-1.1.4-no-exec.patch |
4 |
nfs-utils-1.1.4-ascii-man.patch |
5 |
nfs-utils-1.1.4-mtab-sym.patch |
6 |
Log: |
7 |
Add some fixes from Debian and push out init.d fixes. |
8 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-fs/nfs-utils/files/nfs-utils-1.1.4-no-exec.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-no-exec.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-no-exec.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: nfs-utils-1.1.4-no-exec.patch |
17 |
=================================================================== |
18 |
ripped from Debian |
19 |
|
20 |
--- nfs-utils-1.1.2/utils/mount/mount.c |
21 |
+++ nfs-utils-1.1.2/utils/mount/mount.c |
22 |
@@ -381,10 +381,6 @@ |
23 |
mount_error(NULL, mount_point, ENOTDIR); |
24 |
return 1; |
25 |
} |
26 |
- if (access(mount_point, X_OK) < 0) { |
27 |
- mount_error(NULL, mount_point, errno); |
28 |
- return 1; |
29 |
- } |
30 |
|
31 |
return 0; |
32 |
} |
33 |
|
34 |
|
35 |
|
36 |
1.1 net-fs/nfs-utils/files/nfs-utils-1.1.4-ascii-man.patch |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-ascii-man.patch?rev=1.1&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-ascii-man.patch?rev=1.1&content-type=text/plain |
40 |
|
41 |
Index: nfs-utils-1.1.4-ascii-man.patch |
42 |
=================================================================== |
43 |
ripped from Debian |
44 |
|
45 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493659 |
46 |
patch by nbreen@×××.net (Nicholas Breen) |
47 |
|
48 |
--- nfs-utils-1.1.3/utils/mount/nfs.man |
49 |
+++ nfs-utils-1.1.3/utils/mount/nfs.man |
50 |
@@ -799,7 +799,7 @@ |
51 |
and server load. |
52 |
.P |
53 |
However, UDP can be quite effective in specialized settings where |
54 |
-the network’s MTU is large relative to NFS’s data transfer size (such |
55 |
+the network's MTU is large relative to NFS's data transfer size (such |
56 |
as network environments that enable jumbo Ethernet frames). In such |
57 |
environments, trimming the |
58 |
.B rsize |
59 |
|
60 |
|
61 |
|
62 |
1.1 net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch |
63 |
|
64 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch?rev=1.1&view=markup |
65 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch?rev=1.1&content-type=text/plain |
66 |
|
67 |
Index: nfs-utils-1.1.4-mtab-sym.patch |
68 |
=================================================================== |
69 |
ripped from Debian |
70 |
|
71 |
--- nfs-utils-1.1.4/utils/mount/fstab.c |
72 |
+++ nfs-utils-1.1.4/utils/mount/fstab.c |
73 |
@@ -57,7 +57,7 @@ mtab_does_not_exist(void) { |
74 |
return var_mtab_does_not_exist; |
75 |
} |
76 |
|
77 |
-static int |
78 |
+int |
79 |
mtab_is_a_symlink(void) { |
80 |
get_mtab_info(); |
81 |
return var_mtab_is_a_symlink; |
82 |
--- nfs-utils-1.1.4/utils/mount/fstab.h |
83 |
+++ nfs-utils-1.1.4/utils/mount/fstab.h |
84 |
@@ -7,6 +7,7 @@ |
85 |
#define _PATH_FSTAB "/etc/fstab" |
86 |
#endif |
87 |
|
88 |
+int mtab_is_a_symlink(void); |
89 |
int mtab_is_writable(void); |
90 |
int mtab_does_not_exist(void); |
91 |
void reset_mtab_info(void); |
92 |
--- nfs-utils-1.1.4/utils/mount/mount.c |
93 |
+++ nfs-utils-1.1.4/utils/mount/mount.c |
94 |
@@ -230,6 +230,13 @@ create_mtab (void) { |
95 |
int flags; |
96 |
mntFILE *mfp; |
97 |
|
98 |
+ /* Avoid writing if the mtab is a symlink to /proc/mounts, since |
99 |
+ that would create a file /proc/mounts in case the proc filesystem |
100 |
+ is not mounted, and the fchmod below would also fail. */ |
101 |
+ if (mtab_is_a_symlink()) { |
102 |
+ return EX_SUCCESS; |
103 |
+ } |
104 |
+ |
105 |
lock_mtab(); |
106 |
|
107 |
mfp = nfs_setmntent (MOUNTED, "a+"); |