Re: [PATCH] Allow nsswitch.conf to not contain automount lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ping?

Thanks,

/mjt

On 22.09.2012 12:39, Michael Tokarev wrote:
> 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 <mjt@xxxxxxxxxx>
> Cc: 682266@xxxxxxxxxxxxxxx
> ---
>  lib/nss_parse.y |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/nss_parse.y b/lib/nss_parse.y
> index a39fda4..055e9d7 100644
> --- a/lib/nss_parse.y
> +++ b/lib/nss_parse.y
> @@ -72,6 +72,7 @@ file: {
>  		nss_debug = YYDEBUG;
>  #endif
>  	} sources NL
> +	| /* empty */
>  	;
>  
>  sources: nss_source

--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux