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
This commit is contained in:
Dag-Erling Smørgrav 2012-04-07 22:49:12 +00:00
parent 53544bd288
commit 8c5bc6cb91
1 changed files with 1 additions and 1 deletions

View File

@ -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 {