projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecf63a
)
mount: Add message when the target path does not exist
author
Felipe Sateler
<fsateler@gmail.com>
Thu, 7 Sep 2017 19:12:35 +0000
(16:12 -0300)
committer
Felipe Sateler
<fsateler@gmail.com>
Thu, 7 Sep 2017 19:16:47 +0000
(16:16 -0300)
Fixes: #6760
src/mount/mount-tool.c
patch
|
blob
|
history
diff --git
a/src/mount/mount-tool.c
b/src/mount/mount-tool.c
index
3c974ad
..
2e282ef
100644
(file)
--- 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);