The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2839

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Closes #2838.

Signed-off-by: Christian Brauner <[email protected]>
From 8336d7be2929fcae0d6ee8a27f60930d086f6185 Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Sun, 10 Feb 2019 23:55:17 +0100
Subject: [PATCH] parse: handle \r

Closes #2838.

Signed-off-by: Christian Brauner <[email protected]>
---
 src/lxc/parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/parse.c b/src/lxc/parse.c
index 5abada058..01068ccb3 100644
--- a/src/lxc/parse.c
+++ b/src/lxc/parse.c
@@ -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
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to