chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6540c38
)
nspawn: correct EEXIST check when creating directory to mount /tmp in
author
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Dec 2014 16:52:51 +0000
(17:52 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Dec 2014 16:53:33 +0000
(17:53 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=86309
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index fed150e364984ddf80d4b6a33215f4ec87682ea3..48ef7d07e21e4fd4f3ddfda5e24ef38d23cd388a 100644
(file)
--- 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, "
c
reating mount point for tmpfs %s failed: %m", where);
+ if (r < 0 &&
r != -
EEXIST)
+ return log_error_errno(r, "
C
reating 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);