summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2001-12-03cleanup submitted by by Miod Vallat <miod@online.fr>Kenjiro Cho
- use pidfile() - simplifies some perror() + exit() constructs to use err() instead - fixes a warn() call instead of a LOG() after daemon() has been called ok millert@
2001-12-03fix bugs in reporting unknown keywords. (argv shoud be *argv)Kenjiro Cho
report and fix by Oleg Safiullin <form@openbsd.ru>
2001-12-02KNF, and remove unneccessary signal blocking and errno saving, since not ↵Theo de Raadt
signal handlers anymore; millert ok
2001-12-02pretty much KNF or simplification; millert okTheo de Raadt
2001-12-01Revert previous, as pidfile() uses atexit(), which is no use if we callMiod Vallat
_exit() in signal handlers. Noticed by Theo.
2001-12-01Use pidfile() instead of doing the equivalent thing by hand, and sometimesMiod Vallat
forgetting to unlink the pid file at exit. ok millert@ deraadt@
2001-12-01fd_set, not struct fd_setTheo de Raadt
2001-12-01document why multicast tools are missingTheo de Raadt
2001-12-01pull in protosTheo de Raadt
2001-11-29Replace strncpy() calls with adequate strlcpy() ones, and fix a cosmeto.Miod Vallat
jason@ ok
2001-11-29Use getifaddrs(3) instead of SIOCGIFCONF, SIOCGIFADDR, SIOCGIFNETMASK,Todd C. Miller
and SIOCGIFFLAGS ioctl()s. Fixes an alignment bug on alpha with a certain number of network interfaces (and simplifies the code tremendously). Based on a patch from Chris Jepeway.
2001-11-27Fix check for '/' in cf file and change the check for '/' in df fileTodd C. Miller
for consistency. Based on a patch from Sebastian Krahmer.
2001-11-26mostly mark signal racesTheo de Raadt
2001-11-23Remove the hack that ensures that rt_Update() works on FreeBSD. Nowbrian
that the ncpaddr code doesn't create default routes with non-zero masks, everything works as it should.
2001-11-23When writing messages to the routing socket, round sockaddr sizesbrian
up in the same way that we expect them to be when we read them. This is a no-op on i386 and probably on alphas, as we currently only support AF_INET and AF_INET6.
2001-11-23Be paranoid about non-zero netmasks being associated with INET addressesbrian
of 0.0.0.0. The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes (with an address family of zero). ppp was getting confused by this and ending up interpreting it as a 0.0.0.0/32 routing table destination and subsequently failing to do anything with the route. Specifically, after this fix, ppp under OpenBSD can successfully change and delete the default route again !
2001-11-23Removed an unsed variable (oops)brian
2001-11-23Don't adjust_linklocal() when pulling a sockaddr out of an ncpaddr orbrian
ncprange structure. Don't write() the netmask for IPv6 sockaddrs to the routing socket if the prefixlen is 128. It seems that messages written to the routing socket with the scopeid set for link local addresses are not understood. Instead, we have to put the scopeid in the 5th and 6th bytes of the address (see adjust_linklocal() in ncpaddr.c). I think this may be a bug in the KAME implementation - it should really understand both forms.
2001-11-23cmott@scientech.com -> cm@linktel.netbrian
Add the UPTIME variable CCP protocol ``0xffffffff'' -> ``none'' Don't leak memory when expanding command arguments and not exec()ing Make some functions static Add the ``log'' command for manual logging Fix some log text bogons
2001-11-23use the same siginterrupt() trick in lpc(1) as in timedc(1). we have to hackTheo de Raadt
a global into the other programs since they share some source.
2001-11-23use siginterrupt() enabling around all blocking calls, and check the flags; ↵Theo de Raadt
millert ok
2001-11-22kill wasteful shells. +TypoMarc Espie
2001-11-21assume the presense of getifaddrs(3). sync with kameJun-ichiro itojun Hagino
2001-11-21be more careful on malloc failures. sync with kameJun-ichiro itojun Hagino
2001-11-19only slight fixes needed in signal handlersTheo de Raadt
2001-11-19use _exit in signal handlerTheo de Raadt
2001-11-19use a private svc_run() function that checks for a signal handler flag;Theo de Raadt
now signal safe. Also, massive KNF.
2001-11-19KNFightmareTheo de Raadt
2001-11-19KNF here tooTheo de Raadt
2001-11-19KNFTheo de Raadt
2001-11-19no signals, no need for signal.hTheo de Raadt
2001-11-19blah blah blah. guess what. more signalsTheo de Raadt
2001-11-17volatile sig_atomic_tTheo de Raadt
2001-11-17use volatile sig_atomic_t where possible; simply volatile i other placesTheo de Raadt
2001-11-17remove unused signal handler variableTheo de Raadt
2001-11-17save errno in signal handlerTheo de Raadt
2001-11-17missing prototype (getmsgbufsize).Markus Friedl
2001-11-17reread config from main loop instead of signal hander; ok deraadt@Markus Friedl
2001-11-17check the full libdepend spec at install time.Marc Espie
Thanks naddy for testing all that.
2001-11-17Pass PKG_PREFIX off to pkg thru envMarc Espie
2001-11-17fix signal race issuesTheo de Raadt
2001-11-17race safety in terminal signal handlerTheo de Raadt
2001-11-16Close comment.Miod Vallat
2001-11-16no need for setjmp.hTheo de Raadt
2001-11-16report for wait3() returning 0Theo de Raadt
2001-11-16sync with latest kame. terminate only if ripng response is not receivedJun-ichiro itojun Hagino
for 5 seconds (or length specified by -w).
2001-11-16apull in the latest kame code.Jun-ichiro itojun Hagino
2001-11-15fix password length check; allows usermod -p to work again.Dan Harnett
ok millert@
2001-11-14On macppc, print the recharge time estimate as a recharge time estimate, notMiod Vallat
a battery life estimate, when the battery is charging. Also, if the ac switched state and the life time, whatever it will be a life estimate or a recharge estimate, has been reset to zero, print it as not available.
2001-11-14On macppc, when the battery is charging, the life time estimatation is in factMiod Vallat
the recharge time estimation. So there is no need to annoy the user if this value is <= 10 minute, since no surprise powerdown is about to happen. ok drahn@ mickey@