diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2017-12-19 20:06:25 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2017-12-19 20:24:17 +0100 |
commit | 4176fdf0b64f068d123a0d960beb1eb5708f3e7b (patch) | |
tree | e8df88511b143b2f0cb67c04f47ead1faad43129 /src/options.c | |
parent | e06b6c989b0cf9471679b9670edd2c2d0faf9bfc (diff) |
ptunnel-ng:
* naming
* typ0 fixed
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/options.c b/src/options.c index bcbc98f..01a98db 100644 --- a/src/options.c +++ b/src/options.c @@ -72,7 +72,7 @@ static const struct option_usage usage[] = { }, /** --libpcap */ {"interface", 0, OPT_STR, {.str = "eth0"}, -#ifdef HAVE_PCAP +#ifndef HAVE_PCAP "(Not available on this platform.)\n" #endif "Enable libpcap on the given device.\n" @@ -222,9 +222,7 @@ static void set_options_defaults(void) { errno = 0; tmp = *(char **) get_default_optval(OPT_STR, "group"); - if (NULL == (grnam = getgrnam(tmp))) - pt_log(kLog_error, "%s: %s\n", tmp, errno ? strerror(errno) : "unknown group"); - else + if (NULL != (grnam = getgrnam(tmp))) opts.gid = grnam->gr_gid; opts.root_dir = strdup(*(char **)get_default_optval(OPT_STR, "chroot")); |