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:
c83f349
)
systemd-mount: fix that wrong argument is used for arg_mount_what
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 1 Sep 2017 08:03:01 +0000
(17:03 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 1 Sep 2017 08:11:23 +0000
(17:11 +0900)
src/mount/mount-tool.c
patch
|
blob
|
history
diff --git
a/src/mount/mount-tool.c
b/src/mount/mount-tool.c
index
ed6578d
..
10bb5dd
100644
(file)
--- 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();