Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf. MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a0b8eaf0d7
commit
3af53d3840
@ -90,6 +90,7 @@ chapDigest { return IGNORED; }
|
||||
= { return EQUALS; }
|
||||
; { return SEMICOLON; }
|
||||
#.*$ /* ignore comments */;
|
||||
\r\n { lineno++; }
|
||||
\n { lineno++; }
|
||||
[ \t]+ /* ignore whitespace */;
|
||||
. { yylval.str = strdup(yytext); return STR; }
|
||||
|
@ -82,6 +82,7 @@ timeout { return TIMEOUT; }
|
||||
\{ { return OPENING_BRACKET; }
|
||||
\} { return CLOSING_BRACKET; }
|
||||
#.*$ /* ignore comments */;
|
||||
\r\n { lineno++; }
|
||||
\n { lineno++; }
|
||||
; { return SEMICOLON; }
|
||||
[ \t]+ /* ignore whitespace */;
|
||||
|
Loading…
Reference in New Issue
Block a user