Bug#682266: [PATCH] Allow nsswitch.conf to not contain automount lines
Subsystems (2)
Current code does not allow a case when nsswitch.conf does not mention automount map at all, like all new installations. It logs a rather unpleasant error message instead:
syntax error in nsswitch config near [ syntax error ]
this patch has a minimal fix, to allo "file" to be empty.
Whole parser in C is about 25 lines of code, the "grammar" is trivial, and it is better to ditch all this yacc/lex stuff, but that will be much more intrusive change.
Signed-off-by Michael Tokarev <[email protected]>
--- lib/nss_parse.y | 1 + 1 file changed, 1 insertion(+)
lib/nss_parse.y +1 -0
@@ -72,6 +72,7 @@ file: { nss_debug = YYDEBUG; #endif } sources NL + | /* empty */ ; sources: nss_source
Signature · 1 line
1.7.10.4