X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=4c494f5c608db3dd43bc43601452b2a8b6be8011;hp=dac3dbc397b149491364c5cb8e1af006502d64f1;hb=4ad1e382d6f10acf94ce59d85b80925cee7553a6;hpb=4811afa073c871f2a52dfd5139bd0171046365eb diff --git a/src/tincd.c b/src/tincd.c index dac3dbc3..4c494f5c 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: tincd.c,v 1.10.4.22 2000/10/30 00:22:54 guus Exp $ + $Id: tincd.c,v 1.10.4.24 2000/11/03 22:31:55 zarq Exp $ */ #include "config.h" @@ -74,6 +74,8 @@ char *identname; /* program name for syslog */ char *pidfilename; /* pid file location */ static pid_t ppid; /* pid of non-detached part */ char **g_argv; /* a copy of the cmdline arguments */ +char **environment; /* A pointer to the environment on + startup */ void cleanup_and_exit(int); int detach(void); @@ -90,7 +92,7 @@ static struct option const long_options[] = { "help", no_argument, &show_help, 1 }, { "version", no_argument, &show_version, 1 }, { "no-detach", no_argument, &do_detach, 0 }, - { "keygen", optional_argument, NULL, 'K'}, + { "generate-keys", optional_argument, NULL, 'K'}, { NULL, 0, NULL, 0 } }; @@ -393,6 +395,7 @@ main(int argc, char **argv, char **envp) unknown = _("unknown"); + environment = envp; parse_options(argc, argv, envp); if(show_version)