Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37916267
en ru br
ALT Linux repos
S:5.1.8-alt6
D:5.0.3-alt1.1
5.0: 5.0.4-alt2
4.1: 5.0.1-alt1
4.0: 5.0.1-alt1
3.0: 4.1.4-alt0.3

Other repositories
Upstream:4.1.4

Group :: System/Kernel and hardware
RPM: autofs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: autofs-4.1.4-check-is-multi.patch
Download


--- autofs-4.1.4/modules/parse_sun.c.orig	2005-04-13 22:15:02.734715312 -0400
+++ autofs-4.1.4/modules/parse_sun.c	2005-04-13 22:16:08.570706720 -0400
@@ -766,7 +766,6 @@ static int check_is_multi(const char *ma
 {
 	const char *p = (char *) mapent;
 	int multi = 0;
-	int first_chunk = 0;
 
 	while (*p) {
 		p = skipspace(p);
@@ -779,11 +778,9 @@ static int check_is_multi(const char *ma
 		 * path that begins with '/' indicates a mutil-mount
 		 * entry.
 		 */
-		if (first_chunk) {
-			if (*p == '/' || *p == '-') {
-				multi = 1;
-				break;
-			}
+		if (*p == '/' || *p == '-') {
+			multi = 1;
+			break;
 		}
 
 		while (*p == '-') {
@@ -796,7 +793,6 @@ static int check_is_multi(const char *ma
 		 * after which it's a multi mount.
 		 */
 		p += chunklen(p, check_colon(p));
-		first_chunk++;
 	}
 
 	return multi;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin