[systemd-devel] [PATCH] util: fix incorrect escape sequence in string_is_safe()

Daniel Mack daniel at zonque.org
Sun Jun 28 20:43:53 PDT 2015


On 06/28/2015 07:23 PM, Eric Biggers wrote:
> ---
>  src/basic/util.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/basic/util.c b/src/basic/util.c
> index 727be56..906e4ab 100644
> --- a/src/basic/util.c
> +++ b/src/basic/util.c
> @@ -3627,7 +3627,7 @@ bool string_is_safe(const char *p) {
>                  if (*t > 0 && *t < ' ')
>                          return false;
>  
> -                if (strchr("\\\"\'\0x7f", *t))
> +                if (strchr("\\\"\'\x7f", *t))
>                          return false;
>          }
>  
> 

Applied, thanks!



Daniel



More information about the systemd-devel mailing list