Sophie

Sophie

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

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

diff --git a/lib/master_parse.y b/lib/master_parse.y
index 0fa639c..ea99c3b 100644
--- a/lib/master_parse.y
+++ b/lib/master_parse.y
@@ -566,11 +566,14 @@ int master_parse_entry(const char *buffer, unsigned int default_timeout, unsigne
 		}
 		entry = new;
 	} else {
-		if (strcmp(path, "/-")) {
-			warn(LOGOPT_VERBOSE,
-			     "ignoring duplicate indirect mount %s", path);
-			local_free_vars();
-			return 0;
+		if (entry->age && entry->age == age) {
+			if (strcmp(path, "/-")) {
+				warn(LOGOPT_VERBOSE,
+				     "ignoring duplicate indirect mount %s",
+				     path);
+				local_free_vars();
+				return 0;
+			}
 		}
 	}