]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs-5.0.2-swallow-null-macro.patch
- "few" official patches
[packages/autofs.git] / autofs-5.0.2-swallow-null-macro.patch
diff --git a/autofs-5.0.2-swallow-null-macro.patch b/autofs-5.0.2-swallow-null-macro.patch
new file mode 100644 (file)
index 0000000..2e71ad6
--- /dev/null
@@ -0,0 +1,36 @@
+diff --git a/CHANGELOG b/CHANGELOG
+index fdd07d1..fe7ae00 100644
+--- a/CHANGELOG
++++ b/CHANGELOG
+@@ -33,6 +33,7 @@
+ - fix deadlock in submount mount module.
+ - fix lack of ferror() checking when reading files.
+ - fix typo in autofs(5) man page.
++- fix map entry expansion when undefined macro is present.
+ 18/06/2007 autofs-5.0.2
+ -----------------------
+diff --git a/modules/parse_sun.c b/modules/parse_sun.c
+index 5e14c75..079bda6 100644
+--- a/modules/parse_sun.c
++++ b/modules/parse_sun.c
+@@ -186,8 +186,7 @@ int expandsunent(const char *src, char *dst, const char *key,
+                                               dst += l;
+                                       }
+                                       len += l;
+-                              } else
+-                                      return 0;
++                              }
+                               src = p + 1;
+                       } else {
+                               p = src;
+@@ -201,8 +200,7 @@ int expandsunent(const char *src, char *dst, const char *key,
+                                               dst += l;
+                                       }
+                                       len += l;
+-                              } else
+-                                      return 0;
++                              }
+                               src = p;
+                       }
+                       break;
This page took 0.03474 seconds and 4 git commands to generate.