summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-12-26bzero -> memset. No binary change.mmcc
ok tb@
2015-12-26Use pread/pwrite instead separate lseek+read/write for lastlog.Philip Guenther
Cast to off_t before multiplication to avoid truncation on ILP32 ok kettenis@ mmcc@
2015-12-24Make gpt_chk_mbr() instances even more identicaller by alwaysKenneth R Westerback
returning 0 or 1 since only boolean checks of the result are done. No need for EINVAL as a return value.
2015-12-24Make all instances of gpt_chk_mbr() identical (bar static vsKenneth R Westerback
non-static) by passing disk size as 2nd parameter instead of the different structures holding the disk size info. The fifth copy of gpt_chk_mbr() in fdisk is a little specialer. No functional change.
2015-12-24bzero -> memset. No binary change.mmcc
2015-12-24use strndup instead of malloc/strncpy/nulmmcc
ok krw@
2015-12-24more e-mail -> emailmmcc
2015-12-24Add prototype for gpt_chk_mbr() to i386_installboot.c. Add 'static' toKenneth R Westerback
declarations of gpt_chk_mbr() to match prototypes in efidev.c and softraid.c.
2015-12-24revert check_tcp rev 1.41 by yasuoka@Sebastian Benoit
This part was not meant to be commited, only the bits in check_icmp.c and relayd.h are ok. ok yasuoka@
2015-12-24adress -> addressAnthony J. Bentley
2015-12-24completly -> completelymmcc
2015-12-23Remove NULL-checks before free(). I think I've almost scrubbed themmcc
entire tree of these...
2015-12-23expand message between processes to 2048 bytes. Andre Smagin foundTheo de Raadt
a case where it can reach 637 bytes of output, so use almost 4x (he suggested 1024)
2015-12-23Tidy up output.Antoine Jacoutot
2015-12-22fix sendmail options parsingGilles Chehade
diff from Serguey Parkhomovsky <sergueyparkhomovsky@gmail.com>
2015-12-22commited -> committedmmcc
2015-12-22assign pointers to NULL rather than 0mmcc
2015-12-22update examplesGilles Chehade
diff from Serguey Parkhomovsky <sergueyparkhomovsky@gmail.com> ok sunil@
2015-12-22remove a NULL-check before free()mmcc
2015-12-22remove a NULL-check before free()mmcc
2015-12-22make it clear this needs to be run only for db filesJason McIntyre
since smtpd has switched to using plain files by default; ok sunil gilles
2015-12-22Kill a trailing whitespace that snuck in with previous commit.Sunil Nimmagadda
2015-12-22Initialize a char* to NULL rather than 0.mmcc
2015-12-22commiting -> committingmmcc
2015-12-22Wrap long lines.Sunil Nimmagadda
Ok gilles@ jung@
2015-12-22Wrap long lines.Sunil Nimmagadda
Ok gilles@ jung@
2015-12-21remove NULL-checks before free()mmcc
2015-12-21remove NULL-check before free()mmcc
2015-12-21Remove NULL-checks before free().mmcc
2015-12-21Start accepting some sendmail compatible commandline arguments.Sunil Nimmagadda
This diff teaches smtpctl to understand '-bi -O AliasFile=<path_aliases>' and generate aliases.db. Ok gilles@ jung@ millert@
2015-12-21Only run newaliases(8) if we already have an aliases db.Antoine Jacoutot
2015-12-20need to include err.h for err().Sebastian Benoit
ok deraadt@
2015-12-20Remove unnecessary options:Robert Peichaer
- in fsck_msdos, '-f' option is a no-op - newfs_msdos does not need '-t msdos' OK krw@
2015-12-20remove redundant logGilles Chehade
2015-12-19No need for an extra log.hReyk Floeter
OK bcook@
2015-12-19Remove NULL-check before free().mmcc
2015-12-19Remove NULL-checks before free().mmcc
2015-12-19Remove NULL-check before free().mmcc
2015-12-19Remove NULL-check before free().mmcc
2015-12-19Remove NULL-check before free().mmcc
2015-12-19Add pledge(2). It is not currently possible to pledge -u and -Utb
because of chown(2) and chmod(2). If -u and -U aren't specified, the basic pledge is "stdio rpath getpw". "getpw" is used to resolve uid and gid to names and vice versa. The -r flag makes use of rmdir(2) and unlink(2), so we need "cpath" The -t flag uses utimes(2), so we need "fattr" ok deraadt@
2015-12-19Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.Reyk Floeter
OK bcook@ jung@
2015-12-19Move log_sockaddr() to from log.c to util.c as it is a local additionReyk Floeter
and actually not a "logging" function. No functional change.
2015-12-17s/failes/failed/gmmcc
2015-12-17add return code to newrequest to distinguish between cache hit and error.Ted Unangst
we want to keep looping for more requests after a hit, not stop. (though i'm reconsidering if the looping is worthwhile. maybe should just return to kevent() after each request.)
2015-12-17regen NSD's autoconf script, forgotten with the update - noticed by BradStuart Henderson
2015-12-17Move vcpu register state init to vmd. Allows vmd bootloader to make theMike Larkin
decision as to how the vcpu should be set up for initial start and reset. Also removes some hardcoded register constants from vmm(4). ok jsing@, mpi@
2015-12-17Replace 'arc4random() % (2^k - 1)' by 'arc4random() & (2^k - 1)' totb
avoid modulo bias. Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@
2015-12-17Add missing $OpenBSD$ tags.tb
2015-12-17Replace arc4random() % i by arc4random_uniform(i) to avoid modulo bias.tb
Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@