Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 257

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

diff --git a/daemon/mount.c b/daemon/mount.c
index 59f8f44..494ede1 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -38,14 +38,21 @@ int do_mount(struct autofs_point *ap, const char *root, const char *name, int na
 	char **ngp;
 	int rv;
 
-	mod = open_mount(modstr = fstype, ERR_PREFIX);
+	/* Initially look for a mount module but don't issue an error on fail */
+	mod = open_mount(modstr = fstype, NULL);
 	if (!mod) {
 		for (ngp = not_generic; *ngp; ngp++) {
 			if (!strcmp(fstype, *ngp))
 				break;
 		}
+		/*
+		 * If there's not a known mount module use the generic module,
+		 * otherwise redo the fs mount module with error reporting
+		 */
 		if (!*ngp)
 			mod = open_mount(modstr = "generic", ERR_PREFIX);
+		else
+			mod = open_mount(modstr = fstype, ERR_PREFIX);
 		if (!mod) {
 			error(ap->logopt,
 			      "cannot find mount method for filesystem %s",