From 8c5bc6cb9121f832b6db20263d2ca3c6f66c4cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 7 Apr 2012 22:49:12 +0000 Subject: [PATCH] An escaped newline within a single-quoted string is a literal newline, but within a double-quoted string, it is a line continuation. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@585 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/openpam_readword.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openpam_readword.c b/lib/openpam_readword.c index 633ace6..3b869d3 100644 --- a/lib/openpam_readword.c +++ b/lib/openpam_readword.c @@ -96,7 +96,7 @@ openpam_readword(FILE *f, int *lineno, size_t *lenp) } else if (ch == quote && !escape) { /* end quote */ quote = 0; - } else if (ch == '\n' && escape && !quote) { + } else if (ch == '\n' && escape && quote != '\'') { /* line continuation */ escape = 0; } else {