summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-09-13More FNDELAY/FIONBIO --> SOCK_NONBLOCK conversionsPhilip Guenther
ok millert@
2015-09-13Rename the routines used for packing/unpacking rmtcall RPCs so they don'tPhilip Guenther
conflict with those in libc. They're already static, but best to be clear that they're different in functionality, supporting operations that libc's don't need or have. with deraadt@
2015-09-13match a few if_media uint64_t conversions; ok miodTheo de Raadt
2015-09-13explicit_bzero() from Michael McConville, thanks!Florian Obser
OK claudio
2015-09-13Set the index of the interface in handroller link_addr(3) like code.Martin Pieuchot
This is now necessary on OpenBSD because our routing interface no longer use ifunit() to find the corresponding interface. ok yasuoka@, dlg@
2015-09-12mark up arguments individually and drop redundant .BkIngo Schwarze
2015-09-12add missing .Ar macrosIngo Schwarze
2015-09-12use .Cm for fixed string argumentsIngo Schwarze
2015-09-12It is not necessary to reset errno to 0 since we use logerrorx().Alexander Bluhm
Spotted by jung@
2015-09-12Remove dead get_host_seed() function; Martin NatanoMiod Vallat
2015-09-11Instead of printing errno strings here and there, add a logerrorx()Alexander Bluhm
to syslogd that does not do that. Use it for anything that does not look like a system call or library call around it. Also add logerrorctx() that prints the TLS error instead. Reduce the maximum CAfile limit to 50MB, requested by Bob. OK beck@
2015-09-11consistency: .Ic -> .Cm; and drop redundant .BkIngo Schwarze
2015-09-11add some missing .Cm macros and drop some redundant .Bk while hereIngo Schwarze
2015-09-11kill strcpy deadBob Beck
ok deraadt@
2015-09-11RTF_XRESOLVE is gone.Martin Pieuchot
2015-09-11Since immediate_abort is modified by a signal handler it must beTodd C. Miller
volatile sig_atomic_t.
2015-09-11Fix server_handshake_tls() - we should only call server_input() in the caseJoel Sing
where the handshake has successfully completed. ok beck@
2015-09-11Put a private copy of the ypresp_allfn/ypresp_data interface into ypservTheo de Raadt
(which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
2015-09-11Syslog does not need the global list of TCP clients, libevent handlesAlexander Bluhm
everything. OK benno@
2015-09-11Change device locators type from int to long, for the sake of 64-bit portsMiod Vallat
without proper device trees. Be sure to build and install config(8) and rerun it before attempting to build a kernel. ok kettenis@ deraadt@ jasper@ visa@
2015-09-10Instead of having global variables containing the libevent structures,Alexander Bluhm
allocate them with malloc. This makes the address space layout more random. OK deraadt@ benno@
2015-09-10Hide netgroup internals inside libc. The parts that netgroup_mkdbTheo de Raadt
wants to use, well.... copy them there. ok guenther
2015-09-10Convert syslogd TLS connect to use handshake callback. The bt_hostnameAlexander Bluhm
can go away as the callback does not need the hostname anymore. Call tls_handshake() until successful. Remove the function tls_socket() as it has a bad prefix. Just call tls_client(), tls_configure() and tls_connect_socket() after the TCP socket has been created. There is no need to wait until TCP connect has finished. OK beck@ jsing@
2015-09-10delete obsolete .Bk from the SYNOPSISIngo Schwarze
and delete some useless .No while here
2015-09-10Assign the return value of getopt() to an int, not a char, so that optionsMiod Vallat
actually work on unsigned char platforms.
2015-09-10regen configure, reported by deraadt@Stuart Henderson
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-09-10Remove compat files no longer required.Stuart Henderson
2015-09-10Fix handling of compat/b64_{ntop,pton} by using __-prefixed versions directly,Stuart Henderson
similar to what ssh does. Otherwise they need resolv.h including, which causes problems on OS with newer resolv.h/nameser.h headers which cause conflicts with NSD's T_xxx resource record #defines. autoconf bits adapted from tmux portable. ok florian@
2015-09-10fix return type for tls_read/writeBob Beck
jointly with jsing@
2015-09-10fix type and return check for tls_read/write.Bob Beck
jontly with jsing@
2010-01-15NSD v3.2.4Jakob Schlyter
2015-09-10Make syslogd compile again after recent libtls changes. Adapt toAlexander Bluhm
new tls_read() and tls_write() calling semantics, adapt to TLS_WANT_POLLIN and TLS_WANT_POLLOUT renaming. OK beck@
2015-09-10fix after libtls api changesBob Beck
ok jsing@
2015-09-10fix after libtls api changesBob Beck
ok jsing@
2015-09-10Update httpd to call tls_handshake() after tls_accept_socket().Joel Sing
ok beck@
2015-09-09Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvcTheo de Raadt
as needed. ok miod guenther
2015-09-09Fix memory leak in error path when max length exceeded.Todd C. Miller
From Michael McConville
2015-09-09Remove more dead code.Antoine Jacoutot
2015-09-09To double the receive buffer of a socketpair does not help as sendingAlexander Bluhm
checks the send buffer size. So double both buffer sizes. Moreover the default for sending is 2048 and for receiving is 4096. This makes the existing double buffer algorithm inconsistent. It is better to make the buffers large enough to hold 8 full length messages. Just make sure that it does not shrink. Keep the approach that doubles the buffer sizes. When we are low on buffers and cannot reach the full size, increase it as much as possible. While there, add consistent error messages. OK benno@
2015-09-09Remove unused code.Antoine Jacoutot
2015-09-09Move and tweak a comment.Antoine Jacoutot
2015-09-07when bypassing the enqueuer, insert Message-Id header if none was found andGilles Chehade
the client has connected from a loopback interface. ok millert@ eric@
2015-09-07append a slash immediately after a file system path that is a directory;Igor Sobrado
uppercase the description of /var/run/iked.sock (found by jmc@); add missing full stop. ok jmc@
2015-09-07Fix a regression that was introduced with server.c r1.64: Do NOT freeReyk Floeter
srv_conf->auth in serverconfig_free() because it was not allocated in config_getserver() but assigned as a reference by id from a global list that is maintained independently. This fixes a potential double-free. This fix also makes srv_conf->auth "const" to emphasize that the read-only auth pointer was not allocated here. OK jsing@
2015-09-07Simplify handling of sum files.Antoine Jacoutot
2015-09-07No need to restore backup of sum files; once the new ones are installed,Antoine Jacoutot
it means we already processed all relevant files.
2015-09-06UINT_MAX would overflow the integer calculation later on, leading toTobias Stoeckmann
floating point exception just like -1 would do. Use INT_MAX, which is already way too high to make sense anyway.
2015-09-06Avoid floating point exception when an invalid font width was specified.Tobias Stoeckmann
Also print actually helpful error messages when command line arguments are invalid. ok miod@
2015-09-06hex array of bytes should be printed fixed-form; from Jihyun YuTheo de Raadt