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

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