diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 6482582bd47..fcd364d5794 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.85 2006/06/01 16:37:54 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.86 2006/06/16 16:17:16 reyk Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -2276,6 +2276,9 @@ fork_privchld(int fd, int fd2) return (0); } + if (chdir("/") == -1) + error("chdir(\"/\")"); + setproctitle("%s [priv]", ifi->name); dup2(nullfd, STDIN_FILENO); |