Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 0eec05715da3ca8ae3817a0833b18fa6 > files > 38

nfs-utils-1.0.9-50.el5.src.rpm

diff -up nfs-utils-1.0.9/utils/mount/mount.c.orig nfs-utils-1.0.9/utils/mount/mount.c
--- nfs-utils-1.0.9/utils/mount/mount.c.orig	2009-04-24 15:06:12.000000000 -0400
+++ nfs-utils-1.0.9/utils/mount/mount.c	2009-04-29 13:14:36.000000000 -0400
@@ -414,7 +414,7 @@ static int try_mount(char *spec, char *m
 		}
 	}
 
-	if (!nomtab)
+	if (!nomtab && mtab_is_writable())
 		add_mtab(spec, mount_point,
 			 nfs_mount_vers == 4 ? "nfs4" : "nfs",
 			 *flags, *extra_opts, 0, 0);