Changeset 585 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 7, 2012, 10:49:12 PM (9 years ago)
Author:
Dag-Erling Smørgrav
Message:

An escaped newline within a single-quoted string is a literal newline,
but within a double-quoted string, it is a line continuation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_readword.c

    r579 r585  
    9797                        /* end quote */
    9898                        quote = 0;
    99                 } else if (ch == '\n' && escape && !quote) {
     99                } else if (ch == '\n' && escape && quote != '\'') {
    100100                        /* line continuation */
    101101                        escape = 0;
Note: See TracChangeset for help on using the changeset viewer.