summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2014-10-31Make default output matches status. Hackish but we are not allowed toAntoine Jacoutot
use svc_default_enabled_flags like any other function...
2014-10-31Useless use of sed(1).Antoine Jacoutot
ok swartze@
2014-10-29delete obscure workaround for a bug in SunOS.Theo de Raadt
(But leave the VMS workaround intact)
2014-10-29use poll() instead of the select malloc/free dance which was used toTheo de Raadt
avoid fd_set overflows. Back when I was young, I fixed these throughout the tree, and the world continued on ignoring the issue... The malloc/free dance was used because poll() was not very portable yet. Now poll() is commonplace, and we should use this safer API. ok guenther millert
2014-10-29use poll() instead of select(), thereby removing the fd_set malloc/freeTheo de Raadt
dance which was used to avoid fd_set overflow with high file descriptor values. ok doug
2014-10-29replace the use of select and hand rolled deferral of signal handlingDavid Gwynne
with libevent. this has been in snaps for a while without any negative (or positive) feedback. review and tweaks by bluhm@ nicm@ ok bluhm@ deraadt@
2014-10-28Remove now useless definesDavid Coppa
ok tedu@
2014-10-28use nanosleep() instead of hackish select(); ok dlgTheo de Raadt
2014-10-27Ensure proper separation of grep's options and rcctl options thatRobert Peichaer
may end up in ${svc} by mistake. OK ajacoutot@
2014-10-26Use socket(SOCK_CLOEXEC), open(O_CLOEXEC), and fcntl(F_DUPFD_CLOEXEC)Philip Guenther
instead of calling fcntl(F_SETFD) later. ok otto@ millert@
2014-10-26Add explicit braces to suppress compiler warnings.Brad Smith
iostat.c:214:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] ok guenther@ millert@
2014-10-26fix use of uninitialized variable in error pathCharles Longeau
ok deraadt@
2014-10-26when using the local enqueuer, if the internal SMTP session fails, copy theGilles Chehade
original message to ~/dead.letter so it's not lost
2014-10-26Remove a gazillion useless casts to void*Philip Guenther
Eliminate a couple function pointer casts, fixing the function to match in one case
2014-10-26Delete casts to void* of the argument to free(): only needed when lyingPhilip Guenther
about constness and none of these were
2014-10-26Update to the modern RPC style with different names for server and clientPhilip Guenther
stubs (they have different prototypes, after all). Fill in missing prototypes. Use void* arguments on closure-style callbacks, with local variables of the expected type. Keep deleting unnecessary casts.
2014-10-26clnt_sperrno() is declared nowadays in <rpc/clnt.h>Philip Guenther
2014-10-26Sort #includes; pull in <time.h> for ctime()Philip Guenther
2014-10-26When regcomp() fails, use regerror() to get a useful error messagePhilip Guenther
2014-10-26timeout_mp() is static nowPhilip Guenther
2014-10-26Declare a few functions staticPhilip Guenther
2014-10-26Lint is deadPhilip Guenther
2014-10-26Delete information about porting to and running on other platforms.Philip Guenther
prodded by deraadt@
2014-10-26Delete inscrutable examples; the docs cover thisPhilip Guenther
2014-10-26Use vsyslog() instead of manually expanding the string and calling syslog(%s)Philip Guenther
Now that newline stripping isn't needed, use vfprintf() instead of formatting and then writing it out. Delete bogus XXX comment that predated the switch to vsnprintf() Make the format string const char *
2014-10-26Remove trailing newlines from a couple log messagesPhilip Guenther
2014-10-26Consistently use the extra parens in 'if ((var = hasmntval(...)))' toPhilip Guenther
suppress compiler warnings. Noted with gcc -Wall, then prodded by brad@ and clang
2014-10-26Replace xrealloc() with xreallocarray(). Break-out the 'log and die'Philip Guenther
function as xmallocfailure() and use that in the locations where reallocarray's checks alone aren't sufficient. ok doug@ deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-25newaliases / makemap should parse multi-line aliases entriesGilles Chehade
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-10-24retire networks(5) support;Ingo Schwarze
OK deraadt@
2014-10-22Replace abs(3) with llabs(3).Brad Smith
Pointed out by LLVM. rtadvd.c:979:7: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] ok dcoppa@ millert@
2014-10-22URL-decode the request path.Reyk Floeter
Tested by ajacoutot@ and others OK doug@
2014-10-21Rework the error message a little bit: Do not send details of theReyk Floeter
error. Traditionally, web servers responsed with the request path on 40x errors which could be abused to inject JavaScript etc. Instead of sanitizing the path, we just don't reprint it. Also modify the style a little bit but keep Comic Sans. With input from Jonas Lindemann and doug@
2014-10-21Remove SSLv2 and SSLv3 references from the example relayd.conf and theLawrence Teo
relevant example snippet in the relayd.conf(5) man page. Change the default SSL protocols in the example file/man page to "no tlsv1.0" (suggested by sthen@), which will enable the TLSv1.1 and TLSv1.2 protocols only. feedback/ok jsing@ reyk@ sthen@
2014-10-20Remove the "interface" option from the "transparent forward" directive.Reyk Floeter
It was mandatory in the grammar but never used in the code. A fully transparent relay can now be specified with the following directive in a relay block: "transparent forward to destination". OK sthen@
2014-10-20Change MTAB_TYPE_UFS from "ufs" to "ffs", fixing mount-restarting for them.Philip Guenther
Perform one level of expansion on the various "portability" macros from os-*.h Delete support for Hesiod and the pre-4.4 versions of the NFS API Delete the no-op unlock_mntlist() unifdef -UFASCIST_DF_COMMAND -UMOUNT_HELPER_SOURCE Move the struct mntent and MNTMAXSTR definitions into include/am.h Move the commented-out -DHAS_NDBM_MAPS into amd/Makefile Expand OS_REP to "bsd44". With config/* empty, delete them. "lot of stuff...but I know your process on this" deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-20unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \Philip Guenther
-DHAS_NIS_MAPS -DHAS_NIS_RELOAD -DRPC_4 -DHAS_UNION_MAPS \ -DHAS_TCP_NFS -DOS_HAS_NDBM -DNFS_PROTOCOL_VERSION=3 \ -DNFS_ARGS_NEEDS_PATH -DPRECISE_SYMLINKS -DHAS_EMPTY_AUTOMOUNTS \ -DNEED_MNTOPT_PARSER -DSHORT_MOUNT_NAME -DHAS_NFS_QUALIFIED_NAMES \ -UUPDATE_MTAB -UFIXUP_MNTENT -UMNTENT_HDR -UMNTINFO_DEV \ -UMNTOPT_COMPRESS -UMNTOPT_NQNFS -UINFORM_MOUNTD \ -USUNOS4_WORKAROUND -UULTRIX_HACK ok deraadt@
2014-10-20Start removing portability goo: we have syslog(), strerror(), POSIX regexp,Philip Guenther
BSD-style getmntinfo(), BSD signals, 4.4BSD unmount(), etc Delete configurations for other OSes Delete fsinfo and mk-amd-map, as we don't build them. ok deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-18Use reallocarray()Theo de Raadt
ok doug
2014-10-17remove -C from usage();Jason McIntyre
2014-10-17remove -C from usage();Jason McIntyre
2014-10-17Remove chunk special-casing malloc(siz) for realloc(NULL, siz). BitTheo de Raadt
tricky, but note the remembered size is in bss.
2014-10-17fewer lies in the docs regarding performance modes after recent changes.Ted Unangst
2014-10-17remove performance throttling code from here, use the kernel versionTed Unangst
instead. this effectively kills -C, though the option is kept for compat.
2014-10-16disable SSLv3Gilles Chehade
ok jsing@
2014-10-16reallocarray() obviouslyTheo de Raadt