mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
systemd-mount: fix that wrong argument is used for arg_mount_what
This commit is contained in:
parent
c83f349c5f
commit
4185da7c4d
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user