Blame SOURCES/autofs-5.1.6-remove-intr-hosts-map-mount-option.patch

802313
autofs-5.1.6 - remove intr hosts map mount option
802313
802313
From: Ian Kent <raven@themaw.net>
802313
802313
Don't use the intr option on NFS mounts by default, it's been ignored
802313
by the kernel for a long time now.
802313
802313
Signed-off-by: Ian Kent <raven@themaw.net>
802313
---
802313
 CHANGELOG            |    1 +
802313
 man/auto.master.5.in |    4 ++--
802313
 man/autofs.5         |    4 ++--
802313
 modules/parse_sun.c  |    9 +++------
802313
 samples/auto.misc    |    2 +-
802313
 samples/auto.net     |    2 +-
802313
 6 files changed, 10 insertions(+), 12 deletions(-)
802313
802313
--- autofs-5.1.4.orig/CHANGELOG
802313
+++ autofs-5.1.4/CHANGELOG
802313
@@ -77,6 +77,7 @@
802313
 - add missing description of null map option.
802313
 - fix empty mounts list return from unlink_mount_tree().
802313
 - fix nonstrict offset mount fail handling.
802313
+- remove intr hosts map mount option.
802313
 
802313
 xx/xx/2018 autofs-5.1.5
802313
 - fix flag file permission.
802313
--- autofs-5.1.4.orig/man/auto.master.5.in
802313
+++ autofs-5.1.4/man/auto.master.5.in
802313
@@ -260,8 +260,8 @@ For example, with an entry in the master
802313
 accessing /net/myserver will mount exports from myserver on directories below
802313
 /net/myserver.
802313
 .P
802313
-NOTE: mounts done from a hosts map will be mounted with the "nosuid,nodev,intr" options
802313
-unless overridden by explicitly specifying the "suid", "dev" or "nointr" options in the
802313
+NOTE: mounts done from a hosts map will be mounted with the "nosuid,nodev" options
802313
+unless overridden by explicitly specifying the "suid", "dev" options in the
802313
 master map entry.
802313
 .SH BUILTIN MAP \-null
802313
 If "\-null" is given as the map it is used to tell automount(8) to ignore a subsequent
802313
--- autofs-5.1.4.orig/man/autofs.5
802313
+++ autofs-5.1.4/man/autofs.5
802313
@@ -86,13 +86,13 @@ Indirect map:
802313
 .RS +.2i
802313
 .ta 1.0i 3.0i
802313
 .nf
802313
-kernel	\-ro,soft,intr	ftp.kernel.org:/pub/linux
802313
+kernel	\-ro,soft	ftp.kernel.org:/pub/linux
802313
 boot	\-fstype=ext2	:/dev/hda1
802313
 windoze	\-fstype=smbfs	://windoze/c
802313
 removable	\-fstype=ext2	:/dev/hdd
802313
 cd	\-fstype=iso9660,ro	:/dev/hdc
802313
 floppy	\-fstype=auto	:/dev/fd0
802313
-server	\-rw,hard,intr	/ \-ro myserver.me.org:/ \\
802313
+server	\-rw,hard	/ \-ro myserver.me.org:/ \\
802313
 			/usr myserver.me.org:/usr \\
802313
 			/home myserver.me.org:/home
802313
 .fi
802313
--- autofs-5.1.4.orig/modules/parse_sun.c
802313
+++ autofs-5.1.4/modules/parse_sun.c
802313
@@ -628,10 +628,9 @@ static int sun_mount(struct autofs_point
802313
 			int len = strlen(options);
802313
 			int suid = strstr(options, "suid") ? 0 : 7;
802313
 			int dev = strstr(options, "dev") ? 0 : 6;
802313
-			int nointr = strstr(options, "nointr") ? 0 : 5;
802313
 
802313
-			if (suid || dev || nointr) {
802313
-				char *tmp = alloca(len + suid + dev + nointr + 1);
802313
+			if (suid || dev) {
802313
+				char *tmp = alloca(len + suid + dev + 1);
802313
 				if (!tmp) {
802313
 					error(ap->logopt, MODPREFIX
802313
 					      "alloca failed for options");
802313
@@ -645,8 +644,6 @@ static int sun_mount(struct autofs_point
802313
 					strcat(tmp, ",nosuid");
802313
 				if (dev)
802313
 					strcat(tmp, ",nodev");
802313
-				if (nointr)
802313
-					strcat(tmp, ",intr");
802313
 				options = tmp;
802313
 			}
802313
 		} else {
802313
@@ -658,7 +655,7 @@ static int sun_mount(struct autofs_point
802313
 					return -1;
802313
 				return 1;
802313
 			}
802313
-			strcpy(tmp, "nosuid,nodev,intr");
802313
+			strcpy(tmp, "nosuid,nodev");
802313
 			options = tmp;
802313
 		}
802313
 	}
802313
--- autofs-5.1.4.orig/samples/auto.misc
802313
+++ autofs-5.1.4/samples/auto.misc
802313
@@ -6,7 +6,7 @@
802313
 cd		-fstype=iso9660,ro,nosuid,nodev	:/dev/cdrom
802313
 
802313
 # the following entries are samples to pique your imagination
802313
-#linux		-ro,soft,intr		ftp.example.org:/pub/linux
802313
+#linux		-ro,soft		ftp.example.org:/pub/linux
802313
 #boot		-fstype=ext2		:/dev/hda1
802313
 #floppy		-fstype=auto		:/dev/fd0
802313
 #floppy		-fstype=ext2		:/dev/fd0
802313
--- autofs-5.1.4.orig/samples/auto.net
802313
+++ autofs-5.1.4/samples/auto.net
802313
@@ -9,7 +9,7 @@ key="$1"
802313
 
802313
 # add "nosymlink" here if you want to suppress symlinking local filesystems
802313
 # add "nonstrict" to make it OK for some filesystems to not mount
802313
-opts="-fstype=nfs,hard,intr,nodev,nosuid"
802313
+opts="-fstype=nfs,hard,nodev,nosuid"
802313
 
802313
 for P in /bin /sbin /usr/bin /usr/sbin
802313
 do