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

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