[lxc-devel] [lxc/master] conf: do not use %m format specifier
brauner on Github
lxc-bot at linuxcontainers.org
Sun Nov 13 16:13:42 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 455 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161113/ca35aec6/attachment.bin>
-------------- next part --------------
From 9e4e7b0dadfe6ff9c680d1ceb989fcd4365c1f66 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Sun, 13 Nov 2016 17:10:41 +0100
Subject: [PATCH] conf: do not use %m format specifier
This is a GNU extension and some libcs might be missing it.
Signed-off-by: Christian Brauner <christian.brauner at canonical.com>
---
src/lxc/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index b2e0fd9..ed23034 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -1958,7 +1958,7 @@ FILE *write_mount_file(struct lxc_list *mount)
file = tmpfile();
if (!file) {
- ERROR("tmpfile error: %m");
+ ERROR("Could not create temporary file: %s.", strerror(errno));
return NULL;
}
More information about the lxc-devel
mailing list