]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-initialize.patch
- Prereq: /sbin/chkconfig
[packages/autofs.git] / autofs-initialize.patch
CommitLineData
be85a188 1--- autofs-4.0.0pre7/modules/parse_sun.c Tue Aug 1 17:42:17 2000
2+++ autofs-4.0.0pre7-junk/modules/parse_sun.c Tue Aug 1 17:40:50 2000
3@@ -466,6 +466,7 @@
4 int len = strlen(options)+1;
5
6 noptions = np = alloca(len);
7+ memset(noptions, '\0', len);
8
9 /* Extract fstype= pseudo option */
10 for(comma = options; *comma != '\0'; ) {
11@@ -489,7 +490,7 @@
12 np += comma-cp+1;
13 }
14 }
15- np[-1] = '\0';
16+ if(np > noptions) np[-1] = '\0';
17
18 options = noptions;
19 }
This page took 0.22514 seconds and 4 git commands to generate.