From: Felipe Sateler Date: Thu, 7 Sep 2017 19:12:35 +0000 (-0300) Subject: mount: Add message when the target path does not exist X-Git-Tag: v235~145^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ed555b712be6df19dbcf6e744489e3ca3476c77;p=platform%2Fupstream%2Fsystemd.git mount: Add message when the target path does not exist Fixes: #6760 --- diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 3c974ad..2e282ef 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -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);