[systemd-commits] src/nspawn
Lennart Poettering
lennart at kemper.freedesktop.org
Wed Dec 3 08:55:56 PST 2014
src/nspawn/nspawn.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 04a919394069cf024559f78eb46692a3739641eb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 17:52:51 2014 +0100
nspawn: correct EEXIST check when creating directory to mount /tmp in
https://bugs.freedesktop.org/show_bug.cgi?id=86309
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index fed150e..48ef7d0 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -808,8 +808,8 @@ static int mount_tmpfs(const char *dest) {
return log_oom();
r = mkdir_label(where, 0755);
- if (r < 0 && errno != EEXIST)
- return log_error_errno(r, "creating mount point for tmpfs %s failed: %m", where);
+ if (r < 0 && r != -EEXIST)
+ return log_error_errno(r, "Creating mount point for tmpfs %s failed: %m", where);
if (mount("tmpfs", where, "tmpfs", MS_NODEV|MS_STRICTATIME, *o) < 0)
return log_error_errno(errno, "tmpfs mount to %s failed: %m", where);
More information about the systemd-commits
mailing list