]> git.pld-linux.org Git - packages/autofs.git/blob - autofs-5.0.2-swallow-null-macro.patch
- rel.1, lets try
[packages/autofs.git] / autofs-5.0.2-swallow-null-macro.patch
1 diff --git a/CHANGELOG b/CHANGELOG
2 index fdd07d1..fe7ae00 100644
3 --- a/CHANGELOG
4 +++ b/CHANGELOG
5 @@ -33,6 +33,7 @@
6  - fix deadlock in submount mount module.
7  - fix lack of ferror() checking when reading files.
8  - fix typo in autofs(5) man page.
9 +- fix map entry expansion when undefined macro is present.
10  
11  18/06/2007 autofs-5.0.2
12  -----------------------
13 diff --git a/modules/parse_sun.c b/modules/parse_sun.c
14 index 5e14c75..079bda6 100644
15 --- a/modules/parse_sun.c
16 +++ b/modules/parse_sun.c
17 @@ -186,8 +186,7 @@ int expandsunent(const char *src, char *dst, const char *key,
18                                                 dst += l;
19                                         }
20                                         len += l;
21 -                               } else
22 -                                       return 0;
23 +                               }
24                                 src = p + 1;
25                         } else {
26                                 p = src;
27 @@ -201,8 +200,7 @@ int expandsunent(const char *src, char *dst, const char *key,
28                                                 dst += l;
29                                         }
30                                         len += l;
31 -                               } else
32 -                                       return 0;
33 +                               }
34                                 src = p;
35                         }
36                         break;
This page took 0.022605 seconds and 3 git commands to generate.