mirror of https://github.com/mkerrisk/man-pages
mount_setattr.2: Remove some unnecessary intermediate variables
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f606879ab1
commit
91ce7d5f0a
|
@ -951,13 +951,11 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char **new_argv = &argv[optind];
|
if ((argc \- optind) < 2)
|
||||||
int new_argc = argc \- optind;
|
|
||||||
if (new_argc < 2)
|
|
||||||
exit_log("Missing source or target mount point\en");
|
exit_log("Missing source or target mount point\en");
|
||||||
|
|
||||||
const char *source = new_argv[0];
|
const char *source = argv[optind];
|
||||||
const char *target = new_argv[1];
|
const char *target = argv[optind + 1];
|
||||||
|
|
||||||
int fd_tree = open_tree(\-EBADF, source,
|
int fd_tree = open_tree(\-EBADF, source,
|
||||||
OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |
|
OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |
|
||||||
|
|
Loading…
Reference in New Issue