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:
aa46fa6
)
mount: add missing validation error message
author
Lennart Poettering
<lennart@poettering.net>
Mon, 10 Jul 2017 19:42:39 +0000
(21:42 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 10 Jul 2017 19:42:39 +0000
(21:42 +0200)
We really should generate exactly one log message for each error, hence
let's do that in this one case too.
src/mount/mount-tool.c
patch
|
blob
|
history
diff --git
a/src/mount/mount-tool.c
b/src/mount/mount-tool.c
index
c0b0e46
..
ed6578d
100644
(file)
--- a/
src/mount/mount-tool.c
+++ b/
src/mount/mount-tool.c
@@
-1241,8
+1241,10
@@
static int discover_loop_backing_file(void) {
escaped = xescape(basename(arg_mount_what), "\\");
if (!escaped)
return log_oom();
- if (!filename_is_valid(escaped))
+ if (!filename_is_valid(escaped)) {
+ log_error("Escaped name %s is not a valid filename.", escaped);
return -EINVAL;
+ }
arg_mount_where = strjoin("/run/media/system/", escaped);
if (!arg_mount_where)