From abe0f5c821a8009fa3641e64c59232527402edbe Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 23 Sep 2017 00:19:16 -0500 Subject: [PATCH] libpkgconf: fileio: fix quoting logic for double backslash case (ref #140) --- libpkgconf/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/fileio.c b/libpkgconf/fileio.c index eb073d5..b64205d 100644 --- a/libpkgconf/fileio.c +++ b/libpkgconf/fileio.c @@ -29,7 +29,7 @@ pkgconf_fgetline(char *line, size_t size, FILE *stream) while (s < end && (c = getc(stream)) != EOF) { - if (c == '\\') + if (c == '\\' && !quoted) { quoted = true; continue;