summaryrefslogtreecommitdiffstats
path: root/usr.bin/iscsictl
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-10-29 12:22:32 +0000
committertrasz <trasz@FreeBSD.org>2014-10-29 12:22:32 +0000
commit3af53d3840b0f2cf38f6b6c1390f6d7110bd0f5d (patch)
tree77516c53f56a5d5cd356235de1aeead84b5b93ad /usr.bin/iscsictl
parenta0b8eaf0d7f347c70205b37dbbf8da23e4a5c132 (diff)
downloadFreeBSD-src-3af53d3840b0f2cf38f6b6c1390f6d7110bd0f5d.zip
FreeBSD-src-3af53d3840b0f2cf38f6b6c1390f6d7110bd0f5d.tar.gz
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
Diffstat (limited to 'usr.bin/iscsictl')
-rw-r--r--usr.bin/iscsictl/token.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/iscsictl/token.l b/usr.bin/iscsictl/token.l
index 4866c13..06af167 100644
--- a/usr.bin/iscsictl/token.l
+++ b/usr.bin/iscsictl/token.l
@@ -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; }
OpenPOWER on IntegriCloud