Skip to content

Commit

Permalink
parse: handle \r
Browse files Browse the repository at this point in the history
Closes #2838.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Apr 10, 2019
1 parent 4d2e88e commit 7446500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
}

ret = 0;
lxc_iterate_parts(line, buf, "\n\0") {
lxc_iterate_parts(line, buf, "\r\n\0") {
ret = callback(line, data);
if (ret) {
/* Callback rv > 0 means stop here callback rv < 0 means
Expand Down

0 comments on commit 7446500

Please sign in to comment.