summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-09-01 17:03:01 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-09-01 17:11:23 +0900
commit4185da7c4daf32bd9b5809fd6de99e52cb903bba (patch)
tree55bc7fab845a21f875be23b84a74893c4163e748 /src/mount
parentc83f349c5fd04c469e8227117b9cde6931c80ba5 (diff)
downloadsystemd-4185da7c4daf32bd9b5809fd6de99e52cb903bba.tar.gz
systemd-mount: fix that wrong argument is used for arg_mount_what
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index ed6578d540..10bb5dda63 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -344,9 +344,8 @@ static int parse_argv(int argc, char *argv[]) {
arg_mount_what = canonicalize_file_name(p);
if (!arg_mount_what)
return log_error_errno(errno, "Failed to canonicalize path: %m");
-
} else {
- arg_mount_what = strdup(argv[optind+1]);
+ arg_mount_what = strdup(argv[optind]);
if (!arg_mount_what)
return log_oom();