]> git.pld-linux.org Git - packages/autofs.git/blob - autofs-loop.patch
- BuildRequires openldap-devel
[packages/autofs.git] / autofs-loop.patch
1 --- autofs-3.1.4/modules/mount_autofs.c Fri Jan 21 18:05:29 2000
2 +++ autofs-3.1.4/modules/mount_autofs.c Fri Jan 21 18:07:07 2000
3 @@ -72,11 +72,11 @@
4  
5    argc = 5;
6    if ( options ) {
7 -    char *p = options;
8 +    char *p = options - 1;
9      do {
10        argc++;
11        if ( *p == ',' ) p++;
12 -    } while ((p = strchr(p,',')) != NULL);
13 +    } while ((p = strchr(p + 1,',')) != NULL);
14    }
15    argv = (char **) alloca((argc+1) * sizeof(char *));
16  
This page took 0.046844 seconds and 3 git commands to generate.