diff options
-rw-r--r-- | src/mount/mount-tool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index c0b0e4630c..ed6578d540 100644 --- 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) |