mount: Add message when the target path does not exist

Fixes: #6760
This commit is contained in:
Felipe Sateler
2017-09-07 16:16:47 -03:00
parent 9ecf63a457
commit 1ed555b712
+5
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);