mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-15 10:05:28 +00:00
nspawn: correct EEXIST check when creating directory to mount /tmp in
https://bugs.freedesktop.org/show_bug.cgi?id=86309
(cherry picked from commit 04a9193940)
Conflicts:
src/nspawn/nspawn.c
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
8a791603cb
commit
421c413c2e
+1
-1
@@ -818,7 +818,7 @@ static int mount_tmpfs(const char *dest) {
|
||||
return log_oom();
|
||||
|
||||
r = mkdir_label(where, 0755);
|
||||
if (r < 0 && errno != EEXIST) {
|
||||
if (r < 0 && r != EEXIST) {
|
||||
log_error("creating mount point for tmpfs %s failed: %s", where, strerror(-r));
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user