Merge pull request #7663 from keszybz/mkdir-return-value

util-lib: fix return value in mkdir_parents()
This commit is contained in:
Lennart Poettering
2017-12-24 11:59:58 +01:00
committed by GitHub
10 changed files with 69 additions and 56 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bu
/* Second, we mount the source file or directory to a directory inside of our MS_SLAVE playground. */
mount_tmp = strjoina(mount_slave, "/mount");
if (S_ISDIR(st.st_mode))
r = mkdir(mount_tmp, 0700) < 0 ? -errno : 0;
r = mkdir_errno_wrapper(mount_tmp, 0700);
else
r = touch(mount_tmp);
if (r < 0) {