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:
parent
53544bd288
commit
8c5bc6cb91
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue