diff options
-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")); |