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

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