chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix permissions on /run/systemd/nspawn/locks
[elogind.git]
/
src
/
shared
/
machine-image.c
diff --git
a/src/shared/machine-image.c
b/src/shared/machine-image.c
index bc215f0ad5ca60e60d8fa600c6879717c354d65c..273dacff1f2ac610adf80812ad0669c0e88912f9 100644
(file)
--- a/
src/shared/machine-image.c
+++ b/
src/shared/machine-image.c
@@
-603,7
+603,7
@@
int image_path_lock(const char *path, int operation, LockFile *global, LockFile
return r;
if (p) {
return r;
if (p) {
- mkdir_p("/run/systemd/nspawn/locks", 0
6
00);
+ mkdir_p("/run/systemd/nspawn/locks", 0
7
00);
r = make_lock_file(p, operation, global);
if (r < 0) {
r = make_lock_file(p, operation, global);
if (r < 0) {
@@
-643,7
+643,7
@@
int image_name_lock(const char *name, int operation, LockFile *ret) {
if (streq(name, ".host"))
return -EBUSY;
if (streq(name, ".host"))
return -EBUSY;
- mkdir_p("/run/systemd/nspawn/locks", 0
6
00);
+ mkdir_p("/run/systemd/nspawn/locks", 0
7
00);
p = strjoina("/run/systemd/nspawn/locks/name-", name);
return make_lock_file(p, operation, ret);
p = strjoina("/run/systemd/nspawn/locks/name-", name);
return make_lock_file(p, operation, ret);