diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c index 2b340ce54c..56b83147bf 100644 --- a/src/home/homework-mount.c +++ b/src/home/homework-mount.c @@ -140,7 +140,9 @@ int home_move_mount(const char *mount_suffix, const char *target) { } else d = HOME_RUNTIME_WORK_DIR; - (void) mkdir_p(target, 0700); + r = mkdir_p(target, 0700); + if (r < 0) + return log_error_errno(r, "Failed to create directory '%s': %m", target); r = mount_nofollow_verbose(LOG_ERR, d, target, NULL, MS_BIND, NULL); if (r < 0)