aboutgitcodebugslistschat
path: root/isolation.c
diff options
context:
space:
mode:
Diffstat (limited to 'isolation.c')
-rw-r--r--isolation.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/isolation.c b/isolation.c
index c9dfefa..725a72b 100644
--- a/isolation.c
+++ b/isolation.c
@@ -63,7 +63,6 @@
#include <errno.h>
#include <fcntl.h>
-#include <getopt.h>
#include <grp.h>
#include <inttypes.h>
#include <limits.h>
@@ -262,17 +261,9 @@ void isolate_initial(void)
*/
int isolate_fds(int argc, char **argv)
{
- const struct option optfd[] = { { "fd", required_argument, NULL, 'F' },
- { 0 }, };
- long fd = -1;
- int name, rc;
+ int fd, rc;
- do {
- name = getopt_long(argc, argv, "-:F:", optfd, NULL);
-
- if (name == 'F')
- fd = conf_tap_fd(optarg);
- } while (name != -1);
+ fd = conf_tap_fd(argc, argv);
if (fd == -1) {
rc = close_range(STDERR_FILENO + 1, ~0U, CLOSE_RANGE_UNSHARE);