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 | |
parent | e06b6c989b0cf9471679b9670edd2c2d0faf9bfc (diff) |
ptunnel-ng:
* naming
* typ0 fixed
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | src/options.c | 6 |
2 files changed, 5 insertions, 7 deletions
@@ -1,9 +1,9 @@ -PingTunnel-ng Read Me -================== +PingTunnel-[N]ew[G]eneration Read Me +==================================== What is ptunnel-ng? ---------------- -Ptunnel-ng is a bugfixed and refactored version of Ptunnel with some additional +Ptunnel-NG is a bugfixed and refactored version of Ptunnel with some additional features e.g. change the magic value without recompiling (bypass Cisco IPS). 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")); |