Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37778898
en ru br
Репозитории ALT
S:5.1.8-alt6
D:5.0.3-alt1.1
5.1: 5.0.5-alt1
4.1: 5.0.1-alt1
4.0: 5.0.1-alt1
3.0: 4.1.4-alt0.3
www.altlinux.org/Changes

Другие репозитории
Upstream:4.1.4

Группа :: Система/Ядро и оборудование
Пакет: autofs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: autofs-4.1.4-check-is-multi.patch
Скачать


--- 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;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin