diff options
author | brian <brian@FreeBSD.org> | 1999-11-17 21:12:35 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-17 21:12:35 +0000 |
commit | 23eed7f7102ef9456a9439cb6bc98763c375d65b (patch) | |
tree | e9a6cb680ab641034bfd98b66123c4e69198cbfe /usr.sbin/ppp/main.c | |
parent | a6dfb66b8f373dfb4e877586559df92a05a6cea1 (diff) | |
download | FreeBSD-src-23eed7f7102ef9456a9439cb6bc98763c375d65b.zip FreeBSD-src-23eed7f7102ef9456a9439cb6bc98763c375d65b.tar.gz |
Fix ``set proctitle'' by using setproctitle().
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index cbe0f55..a108f93 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -367,8 +367,7 @@ main(int argc, char **argv) if (!sw.quiet) prompt_Printf(prompt, "Working in %s mode\n", mode2Nam(sw.mode)); - if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit, - (const char **)argv)) == NULL) + if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit)) == NULL) return EX_START; /* NOTE: We may now have changed argv[1] via a ``set proctitle'' */ @@ -398,12 +397,11 @@ main(int argc, char **argv) sig_signal(SIGUSR2, BringDownServer); - lastlabel = argc == 2 ? bundle->argv1 : argv[argc - 1]; + lastlabel = argv[argc - 1]; for (arg = label; arg < argc; arg++) { /* In case we use LABEL or ``set enddisc label'' */ bundle_SetLabel(bundle, lastlabel); - system_Select(bundle, arg == 1 ? bundle->argv1 : argv[arg], - CONFFILE, prompt, NULL); + system_Select(bundle, argv[arg], CONFFILE, prompt, NULL); } if (label < argc) |