Blame SOURCES/autofs-5.0.7-depricate-nosymlink-pseudo-option.patch

306fa1
autofs-5.0.7 - depricate nosymlink pseudo option
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
The undocumented "nosymlink" option was the only way to force local
306fa1
NFS mounting until the more descriptive "nobind" option was added.
306fa1
306fa1
So depricate the "nosymlink" option in favour of the "nobind" option.
306fa1
---
306fa1
 CHANGELOG           |    1 +
306fa1
 modules/mount_nfs.c |    4 ++++
306fa1
 2 files changed, 5 insertions(+)
306fa1
306fa1
diff --git a/CHANGELOG b/CHANGELOG
306fa1
index a7ed212..c189483 100644
306fa1
--- a/CHANGELOG
306fa1
+++ b/CHANGELOG
306fa1
@@ -31,6 +31,7 @@
306fa1
 - dont fail on master map self include.
306fa1
 - fix wildcard multi map regression.
306fa1
 - fix file descriptor leak when reloading the daemon.
306fa1
+- depricate nosymlink pseudo option.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
diff --git a/modules/mount_nfs.c b/modules/mount_nfs.c
306fa1
index bbbb1de..e61320b 100644
306fa1
--- a/modules/mount_nfs.c
306fa1
+++ b/modules/mount_nfs.c
306fa1
@@ -125,6 +125,10 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
306fa1
 
306fa1
 			o_len = end - cp + 1;
306fa1
 			if (strncmp("nosymlink", cp, o_len) == 0) {
306fa1
+				warn(ap->logopt, MODPREFIX
306fa1
+				     "the \"nosymlink\" option is depricated "
306fa1
+				     "and will soon be removed, "
306fa1
+				     "use the \"nobind\" option instead");
306fa1
 				nosymlink = 1;
306fa1
 			} else if (strncmp("nobind", cp, o_len) == 0) {
306fa1
 				nobind = 1;