1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 18:27:04 +03:00

mount: Add message when the target path does not exist

Fixes: #6760
This commit is contained in:
Felipe Sateler 2017-09-07 16:12:35 -03:00
parent 9ecf63a457
commit 1ed555b712

View File

@ -1004,6 +1004,11 @@ static int action_umount(
p = canonicalize_file_name(a);
if (!p) {
r2 = log_error_errno(errno, "Failed to canonicalize path %s: %m", argv[i]);
continue;
}
if (stat(p, &st) < 0)
return log_error_errno(errno, "Can't stat %s: %m", p);