summaryrefslogtreecommitdiff
path: root/sbin/dhclient/privsep.c
AgeCommit message (Collapse)Author
2009-06-06Nuke debug() unless DEBUG is defined. Elminates debug output fromKenneth R Westerback
normal operations. Prodded by deraadt@ a while ago.
2007-02-15make read connection closed message a debug(); ok henning@Kevin Steves
2007-02-14spacing and a typo that fell out of the readTheo de Raadt
2005-10-07Don't display errno message when errno isn't set.Pedro Martelletto
Okay deraadt@, moritz@, help and okay henning@
2005-08-08re-add write() error check in buf_close(). ok henning@Moritz Jodeit
2005-08-07Simplify code by calling error() from inside buf_* functions ratherKenneth R Westerback
than always testing the return code and calling error() from the caller. From a diff by moritz@, ok henning@.
2005-08-04buf_* was taken from the framework I wrote for bgpd (also used by ntpd, ospfdHenning Brauer
and some more). Here, however, we have a blocking socket for the IPC. buf_close (writes out) and buf_read can be simplified due to that, and they can just error out on short writes/reads. ok krw moritz
2005-06-02Make buf_add a no-op if length == 0. OK henningChad Loder
2004-05-10missing casts spotted by 64 bit ccTheo de Raadt
2004-05-04use SIZE_T_MAX, canacarHenning Brauer
2004-05-04more shrink and lint fixes; henning okTheo de Raadt
2004-05-04$OpenBSD$Henning Brauer
2004-05-04prevent the len params from overflowing, catched by & ok canacarHenning Brauer
2004-05-04Fix memory leak, ok henning@Can Erkin Acar
2004-05-04privilege seperate dhclient.Henning Brauer
the privileged child's duty is the dhclient-script env setup & exection. the parent process now chroots to /var/empty and drops privileges to _dhcp mostly hacked at vancouver airport with some feedback from krw@ and otto@, tested to not break installs by krw@