summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2018-11-28Allow reverse sort orderkn
Prefixing the field with a dash will sort processes in reverse order. `o -pid' will therefore list PID 1 on top. "looks good" tedu, improvements and OK cheloha
2018-11-28Bugfix: never set termp->enc to the ambiguous value TERMENC_LOCALE,Ingo Schwarze
but instead set it to TERMENC_UTF8 or TERMENC_ASCII. Makes tbl(7) box drawing work under -T locale (that is, by default when LC_CTYPE is defined appropriately).
2018-11-28additional check needed after the previous (box drawing) patchIngo Schwarze
2018-11-28Handle UTF-8 in word-separators option, GitHub issue 1551.Nicholas Marriott
2018-11-28don't truncate user or host name in "user@host's password: " prompts.Damien Miller
requested by Marcel Logen; ok dtucker@
2018-11-28In -T utf8 output mode, render tbl(7) borders with the UnicodeIngo Schwarze
box drawing characters, U+2500 to U+257F. Originally suggested by bentley@ four years ago, reminded this summer by Pali Rohar. Binary and decimal arithmetics are boring, so let's use some ternary arithmetics for a change. That said, some other aspects are too complicated for my liking, so this could use some polishing in the future.
2018-11-27LDAP returns values as OCTET STRINGs, which can be LDAPStrings, but isn'tMartijn van Duren
always the case. This caused some malformed output when querying databases returning data containing NUL-bytes. Fix this by also returning the actual size. With this diff we should produce basically identical output to openldap's ldapsearch. Lots of back and forths with claudio@ OK claudio@
2018-11-27handle -s and -i in a uniform fashion, do not try to change the node typeMarc Espie
but use the Targ_* functions correctly. This fixes an oddity in end node handling noticed by kn@ review and okay kn@
2018-06-13Import ldap(1), a simple ldap search client.Reyk Floeter
We have an ldapd(8) server and ypldap in base, so it makes sense to have a simple LDAP client without depending on the OpenLDAP package. This tool can be used in an ssh(1) AuthorizedKeysCommand script. With feedback from many including millert@ schwarze@ gilles@ dlg@ jsing@ OK deraadt@
2018-11-26Implement tbl(7) lines in -T html output,Ingo Schwarze
as far as they are on the edges of table cells rather than going through the middle of cells: * the box, doublebox, and allbox options; * the | and || layout modifiers; * and the _ and = data lines; - but not yet _ and = in individual layout and data cells. Missing feature reported by Pali dot Rohar at gmail dot com.
2018-11-26When a conditional block is closed by putting "\}" on a text lineIngo Schwarze
by itself (which is somewhat unusual but not invalid; most authors use the empty macro line ".\}" instead), agree more closely with groff and do not produce a double space in the output. Quirk reported by millert@. While here, tweak the rest of the function body of roff_cond_text() to more closely match roff_cond_sub(). The subtly different handling could make people (including myself) wonder whether there is any point in being different. Testing shows there is not.
2018-11-26Place mandoc.css into the public domain.Ingo Schwarze
The reason for doing this rather than using the ISC license is that i guess that in some contexts, a requirement to preserve a Copyright and license header might be inconvenient, and i really don't care at all how people use it. What matters is that they do use it, or something similar - attempts to use mandoc without any CSS are a constant source of grief and bogus bug reports because HTML without CSS doesn't look very good: the more structural and semantic and the less presentational and old-fashioned the HTML, the more so. Thanks to Mark Harris <mark dot hsj at gmail dot com> for pointing out that the permissions on this particular file were unclear.
2018-11-26Simplify writing of tbl(7) cells by using the new feature of passingIngo Schwarze
a NULL pointer for the value of a style attribute, in which case the attribute is omitted from the HTML element. Minus 12 lines of ugly and repetitive code, no functional change.
2018-11-26Support more than one style attribute one the same HTML element.Ingo Schwarze
In fact, this is already required when a table uses non-default horizontal and vertical alignment in the same cell.
2018-11-25Let cells containing nothing but \^ extend the cell above.Ingo Schwarze
Missing feature reported by Pali dot Rohar at gmail dot com.
2018-11-25In tbl(7) -T html output,Ingo Schwarze
span cells horizontally and vertically as requested by the layout. Does not handle spans requested in the data section yet. To be able to do this, record the number of rows spanned in the first data cell (struct tbl_dat) of a vertical span. Missing feature reported by Pali dot Rohar at gmail dot com.
2018-11-24Implement horizontal and vertical alignment of tbl(7) cell contentIngo Schwarze
in -T html output. This does not handle spanned cells yet. Missing feature reported by Pali dot Rohar at gmail dot com.
2018-11-23When a font escape appears in the middle of a string,Ingo Schwarze
make sure it doesn't cause output of bogus whitespace. Fixing a bug reported by Pali dot Rohar at gmail dot com.
2018-11-23tweak previous;Jason McIntyre
2018-11-23add a ssh_config "Match final" predicateDamien Miller
Matches in same pass as "Match canonical" but doesn't require hostname canonicalisation be enabled. bz#2906 ok markus
2018-11-22Correct and shorten the description of the sort order of apropos(1)Ingo Schwarze
results. As a matter of fact, which manpath the page comes from does not matter in that context. That only matters for the priority of pages in man(1) mode (without -a, -f, and -k). Noticed while working on a patch from Yuri Pankov <yuripv at FreeBSD>.
2018-11-22In apropos(1) output, stop sorting .Nm search results by nameIngo Schwarze
priorities (bits). The obscure feature wasn't documented and merely confused people - for example Edward Tomasz Napierala <trasz at FreeBSD>, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227408. Smaller patch provided by Yuri Pankov <yuripv at FreeBSD>, but i'm also retiring the now unused "bits" member from struct manpage. Simplification is good.
2018-11-22In -T locale (the default), -T ascii, and -T utf8 mode, provide a newIngo Schwarze
output option -O tag[=term] to move right to the definition of "term" when opening the manual page in a pager, effectively porting the -T html fragment name feature - https://man.openbsd.org/ksh#ulimit - to the terminal. Try: $ man -O tag uvm_sysctl $ man -O tag=ulimit ksh $ man -O tag 3 compress Feature development triggered by a question from kn@. Klemens also tested, provided feedback that resulted in improvements, and provided an OK.
2018-11-22Do not use PWD unless it actually matches the real working directory.Nicholas Marriott
2018-11-21add st. andrew's day and put the entry for st. patrick's day in a formatJason McIntyre
similar to the others;
2018-11-20Fix when ber_free_elements is called with a NULL-value.Martijn van Duren
Found via snmpctl snmp walk 127.0.0.1 oid 1 OK claudio@
2018-11-19Improve POSIX compliance by making case-insensitive extendedIngo Schwarze
regular expressions the default in man(1) -k searches, also matching what the man-db package used by many Linux distributions does. Originally requested by Wolfram Schneider <wosch at FreeBSD> via Yuri Pankov <yuripv at FreeBSD>. Feedback and OK cheloha@, and no objections when shown on tech@. Thanks to cheloha@ for pointing out that POSIX requires this behaviour and for the suggestion to explicitly say that *extended* regular expressions are used here. While here, unify spelling of case-[in]sensitive, fix a typo, update the EXAMPLES, and add a STANDARDS section.
2018-11-19evbuffer_new and bufferevent_new can both fail (when malloc fails) andNicholas Marriott
return NULL. GitHub issue 1547.
2018-11-19Utilize sigio with sockets.Visa Hankala
OK mpi@
2018-11-19silence (to log level debug2) failure messages when loading the defaultDamien Miller
hostkeys. Hostkeys explicitly specified in the configuration or on the command-line are still reported as errors, and failure to load at least one host key remains a fatal error. Based on patch from Dag-Erling Smørgrav via https://github.com/openssh/openssh-portable/pull/103 ok markus@
2018-11-18Fix inverted logic for redirecting ProxyCommand stderr to /dev/null.Darren Tucker
Fixes mosh in proxycommand mode that was broken by the previous ProxyCommand change that was reported by matthieu@. ok djm@ danj@
2018-11-18small clean up of dired sectionMark Lumsden
ok jmc@
2018-11-17Add new KERN_CPUSTATS sysctl(2) so we can identify offline CPUs.cheloha
Because of hw.smt we need a way to determine whether a given CPU is "online" or "offline" from userspace. KERN_CPTIME2 is an array, and so cannot be cleanly extended for this purpose, so add a new sysctl(2) KERN_CPUSTATS with an extensible struct. At the moment it's just KERN_CPTIME2 with a flags member, but it can grow as needed. KERN_CPUSTATS appears to have been defined by BSDi long ago, but there are few (if any) packages in the wild still using the symbol so breakage in ports should be near zero. No other system inherited the symbol from BSDi, either. Then, use the new sysctl(2) in systat(1) and top(1): - systat(1) draws placeholder marks ('-') instead of percentages for offline CPUs in the cpu view. - systat(1) omits offline CPU ticks when drawing the "big bar" in the vmstat view. The upshot is that the bar isn't half idle when half your logical CPUs are disabled. - top(1) does not draw lines for offline CPUs; if CPUs toggle on or offline in interactive mode we redraw the display to expand/reduce space for the new/missing CPUs. This is consistent with what some top(1) implementations do on Linux. - top(1) omits offline CPUs from the totals when CPU totals are combined into a single line (the '-1' flag). Originally prompted by deraadt@. Discussed endlessly with deraadt@, ketennis@, and sthen@. Tested by jmc@ and jca@. Earlier versions also discussed with jca@. Earlier versions tested by jmc@, tb@, and many others. docs ok jmc@, kernel bits ok ketennis@, everything ok sthen@, "Is your stuff in yet?" deraadt@
2018-11-17Be more careful when dumping cmsghdr struct. In the SCM_RIGHTS case anClaudio Jeker
extra check for a truncated cmsghdr needs to be done since the embeded lenght may be longer than the supplied buffer (MSG_CTRUNC case). OK deraadt@
2018-11-17fix undo in transpose-paragraph.Mark Lumsden
2018-11-16redirect stderr of ProxyCommands to /dev/null when ssh is started withDamien Miller
ControlPersist; based on patch from Steffen Prohaska
2018-11-16make grandparent-parent-child sshbuf chains robust to use-after-freeDamien Miller
faults if the ancestors are freed before the descendents. Nothing in OpenSSH uses this deallocation pattern. Reported by Jann Horn
2018-11-16use path_absolute() for pathname checks; from Manoj AmpalamDamien Miller
2018-11-16disallow empty incoming filename or ones that refer to the currentDamien Miller
directory; based on report/patch from Harry Sintonen
2018-11-16fix bug in client that was keeping a redundant ssh-agent socket aroundDamien Miller
for the life of the connection; bz#2912; reported by Simon Tatham; ok dtucker@
2018-11-16fix bug in HostbasedAcceptedKeyTypes and PubkeyAcceptedKeyTypes options.Damien Miller
If only RSA-SHA2 siganture types were specified, then authentication would always fail for RSA keys as the monitor checks only the base key (not the signature algorithm) type against *AcceptedKeyTypes. bz#2746; reported by Jakub Jelen; ok dtucker
2018-11-16support a prefix of '@' to suppress echo of sftp batch commands;Damien Miller
bz#2926; ok dtucker@
2018-11-15Add [template] to display-panes and choose-{buffer,client,tree} usagekn
OK nicm
2018-11-14Remove slurpit definition. Leftover from earlier cleanup by otto@.Martijn van Duren
2018-11-14Make sed's -i flag more compatible with what gsed does.Martijn van Duren
- Reset the hold-space in between files - quit the editor as soon as a 'q' command is found - Make sure the temp-file is written back to the original file if we quit the editor temp-file not written back issue found by Time Chase. Lots of feedback from millert@ and schwarze@ OK millert@
2018-11-14didn't found -> didn't find.Theo Buehler
From Edgar Pettijohn III
2018-11-13commit again the cleanup part that didn't break anythingMarc Espie
and was ok'd millert@
2018-11-13Initialize context property in alignment test handler function.Nicholas Marriott
2018-11-13fix markup error (missing blank before delimiter);Ingo Schwarze
from Mike Frysinger <vapier at gentoo dot org>
2018-11-12Allow style #[] in mode formats.Nicholas Marriott