From: Antonio Huete Jimenez Date: Wed, 1 Aug 2012 17:51:25 +0000 (+0200) Subject: dhclient - Error out if _dhcp user is missing. X-Git-Tag: v3.2.0~351 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/38623c79f12011566963ef7025e02b768ed9418f dhclient - Error out if _dhcp user is missing. Taken-from: OpenBSD --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index a409730c4a..5f810ea667 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.124 2009/03/10 23:19:36 krw Exp $ */ +/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.126 2009/05/20 20:37:43 thib Exp $ */ /* * Copyright 2004 Henning Brauer @@ -347,11 +347,8 @@ main(int argc, char *argv[]) if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1) error("cannot open %s: %m", _PATH_DEVNULL); - if ((pw = getpwnam("_dhcp")) == NULL) { - warning("no such user: _dhcp, falling back to \"nobody\""); - if ((pw = getpwnam("nobody")) == NULL) - error("no such user: nobody"); - } + if ((pw = getpwnam("_dhcp")) == NULL) + error("no such user: _dhcp"); if (pipe(pipe_fd) == -1) error("pipe");