summaryrefslogtreecommitdiff
path: root/testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-05-31 16:32:49 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-05-31 16:32:49 +0000
commit2ed96c6eb798c762b61a93a8b4cf80220c00ac1f (patch)
treec5236b776b3871b4608cb683bb2500b9c20567ba /testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch
parentf5a8de28b86c2c838a28e79aa54f8b4c3fbd869e (diff)
Thu May 31 16:32:49 UTC 2012
Diffstat (limited to 'testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch')
-rw-r--r--testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch b/testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch
deleted file mode 100644
index c9e60afc7..000000000
--- a/testing/nfs-utils/nfs-utils-1.1.4-mtab-sym.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-ripped from Debian
-
---- nfs-utils-1.1.4/utils/mount/fstab.c
-+++ nfs-utils-1.1.4/utils/mount/fstab.c
-@@ -57,7 +57,7 @@ mtab_does_not_exist(void) {
- return var_mtab_does_not_exist;
- }
-
--static int
-+int
- mtab_is_a_symlink(void) {
- get_mtab_info();
- return var_mtab_is_a_symlink;
---- nfs-utils-1.1.4/utils/mount/fstab.h
-+++ nfs-utils-1.1.4/utils/mount/fstab.h
-@@ -7,6 +7,7 @@
- #define _PATH_FSTAB "/etc/fstab"
- #endif
-
-+int mtab_is_a_symlink(void);
- int mtab_is_writable(void);
- int mtab_does_not_exist(void);
- void reset_mtab_info(void);
---- nfs-utils-1.1.4/utils/mount/mount.c
-+++ nfs-utils-1.1.4/utils/mount/mount.c
-@@ -230,6 +230,13 @@ create_mtab (void) {
- int flags;
- mntFILE *mfp;
-
-+ /* Avoid writing if the mtab is a symlink to /proc/mounts, since
-+ that would create a file /proc/mounts in case the proc filesystem
-+ is not mounted, and the fchmod below would also fail. */
-+ if (mtab_is_a_symlink()) {
-+ return EX_SUCCESS;
-+ }
-+
- lock_mtab();
-
- mfp = nfs_setmntent (MOUNTED, "a+");