Blame SOURCES/autofs-5.0.7-allow-nsswitch_conf-to-not-contain-automount-lines.patch
|
|
ab3a3d |
autofs-5.0.7 - Allow nsswitch.conf to not contain "automount:" lines
|
|
|
ab3a3d |
|
|
|
ab3a3d |
From: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
ab3a3d |
|
|
|
ab3a3d |
Current code does not allow a case when nsswitch.conf
|
|
|
ab3a3d |
does not mention automount map at all, like all new
|
|
|
ab3a3d |
installations. It logs a rather unpleasant error
|
|
|
ab3a3d |
message instead:
|
|
|
ab3a3d |
|
|
|
ab3a3d |
syntax error in nsswitch config near [ syntax error ]
|
|
|
ab3a3d |
|
|
|
ab3a3d |
this patch has a minimal fix, to allo "file" to be empty.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
Whole parser in C is about 25 lines of code, the "grammar"
|
|
|
ab3a3d |
is trivial, and it is better to ditch all this yacc/lex
|
|
|
ab3a3d |
stuff, but that will be much more intrusive change.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
ab3a3d |
Cc: 682266@bugs.debian.org
|
|
|
ab3a3d |
---
|
|
|
ab3a3d |
|
|
|
ab3a3d |
CHANGELOG | 1 +
|
|
|
ab3a3d |
lib/nss_parse.y | 1 +
|
|
|
ab3a3d |
2 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
ab3a3d |
|
|
|
ab3a3d |
|
|
|
ab3a3d |
diff --git a/CHANGELOG b/CHANGELOG
|
|
|
ab3a3d |
index bd0dd82..16ac2a0 100644
|
|
|
ab3a3d |
--- a/CHANGELOG
|
|
|
ab3a3d |
+++ b/CHANGELOG
|
|
|
ab3a3d |
@@ -16,6 +16,7 @@
|
|
|
ab3a3d |
- increase file map read buffer size.
|
|
|
ab3a3d |
- handle new location of systemd.
|
|
|
ab3a3d |
- fix map entry duplicate offset detection.
|
|
|
ab3a3d |
+- Allow nsswitch.conf to not contain "automount:" lines.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
25/07/2012 autofs-5.0.7
|
|
|
ab3a3d |
=======================
|
|
|
ab3a3d |
diff --git a/lib/nss_parse.y b/lib/nss_parse.y
|
|
|
ab3a3d |
index a39fda4..055e9d7 100644
|
|
|
ab3a3d |
--- a/lib/nss_parse.y
|
|
|
ab3a3d |
+++ b/lib/nss_parse.y
|
|
|
ab3a3d |
@@ -72,6 +72,7 @@ file: {
|
|
|
ab3a3d |
nss_debug = YYDEBUG;
|
|
|
ab3a3d |
#endif
|
|
|
ab3a3d |
} sources NL
|
|
|
ab3a3d |
+ | /* empty */
|
|
|
ab3a3d |
;
|
|
|
ab3a3d |
|
|
|
ab3a3d |
sources: nss_source
|