summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-11-17 21:12:35 +0000
committerBrian Somers <brian@FreeBSD.org>1999-11-17 21:12:35 +0000
commitcf0a39401da73d01cdbce0a037d078e3b6bc9f42 (patch)
treee9a6cb680ab641034bfd98b66123c4e69198cbfe /usr.sbin/ppp/command.c
parent0675e24de037a1fd5075de616d9281bb11f820f4 (diff)
Notes
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 47a83e0b2935..4096597217c4 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -33,6 +33,11 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef __OpenBSD__
+#include <util.h>
+#else
+#include <libutil.h>
+#endif
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
@@ -87,6 +92,7 @@
#include "cbcp.h"
#include "datalink.h"
#include "iface.h"
+#include "id.h"
/* ``set'' values */
#define VAR_AUTHKEY 0
@@ -2609,8 +2615,7 @@ SetProcTitle(struct cmdargs const *arg)
int len, remaining, f, argc = arg->argc - arg->argn;
if (arg->argc == arg->argn) {
- arg->bundle->argv[0] = arg->bundle->argv0;
- arg->bundle->argv[1] = arg->bundle->argv1;
+ ID0setproctitle(NULL);
return 0;
}
@@ -2636,8 +2641,7 @@ SetProcTitle(struct cmdargs const *arg)
}
*ptr = '\0';
- arg->bundle->argv[0] = title;
- arg->bundle->argv[1] = NULL;
+ ID0setproctitle(title);
return 0;
}