summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-01-19Update my mail address.Sunil Nimmagadda
2016-01-19Fix bad indents. From max at max-fillinger.netSunil Nimmagadda
Ok lum@ jasper@
2016-01-19Check snprintf(3) return value for overflow instead of manual lengthSunil Nimmagadda
check. From max at max-fillinger.net. Ok lum@ jasper@
2016-01-19Skip empty entries in $PATH instead of erroneously interpretingSunil Nimmagadda
them as ".". Ok lum@ jasper@
2016-01-19Remove the lintism PRINTFLIKE1, don't replace it with an attribute so wemmcc
can keep it portable. also noticed by Michael Reed, discussed with deraadt@
2016-01-18UTF-8 support:Ingo Schwarze
Cut by display columns rather than by character positions because the latter would be useless in the presence of combining zero-width characters. Similarly, let tab advance to display columns rather than to character positions. For compatibility with nroff and man(1) output, let backspace back up one character rather than on display column. But for compatibility with POSIX fold(1), *if* two backspaces follow a double-width character, ignore the second one. Fix some bugs while here: Delete backspaces that immediately follow deleted characters. Expand tabs intersecting deletions, such that part of the blanks can be removed. Expand tabs following deletions, or they would no longer align with adjacent lines without tabs. OK jmc@ on a previous version of the manual. No opposition when shown on tech@.
2016-01-18UTF-8 support:Ingo Schwarze
This is the first example of a program where doing the full char * to wchar_t * to char * double conversion is actually simpler than our usual approach of working with char * throughout. In part inspired by the FreeBSD version which is in turn based on Bruno Haible's work in util-linux, but not sharing any code and avoiding the almost half a dozen bugs that FreeBSD has. As a bonus reimplement overstrike() and iattr() almost from scratch, getting rid of useless malloc(3)ed local buffers. Add lots of missing information to the manual. No opposition when shown on tech@.
2016-01-18Allow time differences between two clock_gettime() calls toAlexandre Ratchov
be up to 60s without logging a warning.
2016-01-18Mention that "sndiod -d" doesn't daemonize and thatAlexandre Ratchov
the -d flag can be specified multiple times. Diff from Michael Reed <m.reed at mykolab.com>. Many thanks.
2016-01-17start removing mp, the pointer to message's nul bytemmcc
ok deraadt@
2016-01-16Unbreak reading from stdin after recent parse() restructuring.Florian Obser
OK schwarze@
2016-01-16fix a number of minor issues in the state view:Can Erkin Acar
1. peak and rate computations were using uint32 size which caused the fields from working for states that transferred more than 4GB also fix an unnecessary cast to double found while looking for the bug. 2. When creating new cache entries for existing states, start time from 0 rather than the current time to prevent a "spike" in rate and peak.
2016-01-16Add hooks for alerts (bell, silence, activity), from Thomas Adam.Nicholas Marriott
2016-01-15remove needless extern keywords, a vestige of pre-ANSI Cmmcc
explained by and ok millert@
2016-01-15Use quotes rather than angle brackets for local header. Fixes buildingmmcc
with Clang 3.7. ok millert@
2016-01-15Clear the environment properly by looping until it is empty rather thanNicholas Marriott
looping over it (which may skip entries), from Brad King.
2016-01-15A couple of missing printflike attributes, from Andrey Starodubtsev.Nicholas Marriott
2016-01-15Add support for parsing 'hyper' and 'quad' types, as per RFC4506.Jasper Lievisse Adriaanse
From FreeBSD ok millert@
2016-01-14fd leaks; report Qualys Security Advisory team; ok deraadt@Markus Friedl
2016-01-14Check the return value of snprintf() for potential overflow insteadTodd C. Miller
of doing a manual check beforehand.
2016-01-14Avoid potential read of one byte before the start of a malloc()edTodd C. Miller
buffer. From Max Fillinger.
2016-01-14Use _PATH_DEFPATH if no PATH in the environment when invoked as which.Todd C. Miller
2016-01-14add a calendar file for the uk;Jason McIntyre
this is the work of craig skinner - many thanks, craig. i've tweaked it a bit. craig has also fixed a currently incorrect date and moved a couple entries to the uk file/ some outstanding issues (what to do with dups) but it'll be eaiser to work on once in tree
2016-01-14remove roaming support; ok djm@Markus Friedl
2016-01-14Disable experimental client-side roaming support. Server side wasTheo de Raadt
disabled/gutted for years already, but this aspect was surprisingly forgotten. Thanks for report from Qualys
2016-01-14Display struct event more like other structs: show all members and use cppPhilip Guenther
define names. Use the mksubr infrastructure for EVFILT_*, EV_*, and (with some kludging) NOTE_* values. If EV_ERROR is set, include the errno string for the data member. Also, do MSG_* parsing on the msg_flags member of struct msghdr. ok millert@
2016-01-13eliminate fallback from untrusted X11 forwarding to trustedDamien Miller
forwarding when the X server disables the SECURITY extension; Reported by Thomas Hoger; ok deraadt@
2016-01-13unify two identical function pairs now that we've removed less's off_tmmcc
aliases ok nicm@
2016-01-12use explicit_bzero() more liberally in the buffer code; ok deraadtDamien Miller
2016-01-12remove lint annotationsmmcc
ok nicm@
2016-01-12Remove LINUNUM, a needless alias for off_t. Also, remove a redundantmmcc
condition. ok nicm@
2016-01-11ajacoutot@ reported seeingtb
newsyslog: preposterous process number in pid file: /var/run/syslog.pid in his log since syslogd ran as pid 2. Nowadays only init runs with a reserved low pid, so decrease MIN_PID from 4 to 2, as suggested by espie@. ok kettenis@
2016-01-11:( David BowieStuart Henderson
2016-01-10trailing spaces, fit in 80 columnsAlexandre Ratchov
2016-01-10Random sequences generated by jot -r have been suffering from a dramatictb
bias at both ends of the given interval. Various clever workarounds are documented in the manual. This fixes the bias in some of the most common use cases, namely random sequences of integers or real numbers rounded to a fixed number of decimals. So, `jot -p 3 -r 10000 0 1' produces a uniformly distributed sequence of 10,000 decimal numbers of the form 0.abc (or 1). Internally, jot -r now uses arc4random_uniform() whenever this is clearly possible. In particular `jot -r 1 10 20' yields an unbiased random number between 10 and 20 (both ends inclusive) from the shell. guidance and ok deraadt@, "i like it" benno@
2016-01-09Remove superfluous and barely used macro aliases for wctype.h functions.mmcc
ok nicm@
2016-01-09decls before code; from Martijn van DurenTheo de Raadt
2016-01-09Make midi->tickets signed (sign is needed for arithmetics even if theAlexandre Ratchov
actual count is always positive). Found by David Coppa. Thanks.
2016-01-09Check in advance that the socket path is a directory and report theAlexandre Ratchov
error if it isn't. Fixes ugly/delayed error messages in this case.
2016-01-09Remove trailing '\n' from strings passed to err(1)Alexandre Ratchov
2016-01-09unexpand tabsAlexandre Ratchov
2016-01-09revert previous now that they are found in usbhid.h againJoshua Stein
2016-01-08Handle redirects to _relative_ URIs containing '://', e.g. for archive.org.Stuart Henderson
From Lauri Tirkkonen, plus tweak to comment. ok jung@
2016-01-08Delete the redundant "nchild" member of struct roff_node, replacingIngo Schwarze
most uses by one, a few by two pointer checks, and only one by a tiny loop - not only making data smaller, but code shorter as well. This gets rid of an implicit invariant that confused both static analysis tools and human auditors. No functional change.
2016-01-08redefine 3 UHID_* vars that movedJoshua Stein
2016-01-08Fix changes that last commit undid by mistake, sorry.Alexandre Ratchov
2016-01-08Make code fit in 80 columns, remove trailing spaces & tabs.Alexandre Ratchov
2016-01-08move code to add a midi port in a new mkport() routineAlexandre Ratchov
2016-01-08Prefer warn(3) over perror(3) at the few places where it was used.Ingo Schwarze
It is useful to see the program name. Suggested by Christos Zoulas (NetBSD).
2016-01-08Make mkopt() return NULL on failureAlexandre Ratchov