summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2015-11-15Vi needs flock, for those who haven't set nolock in .exrc for years...Anthony J. Bentley
Pointed out by Theo Buehler.
2015-11-15Basic pledge for vi.Anthony J. Bentley
ok deraadt@
2015-11-14Fix an issue reported by deraadt@: When hitting Ctrl-Backslash (= SIGQUIT)Ingo Schwarze
in the less(1) spawned by man(1), man(1) died uncleanly, leaving behind its temp files, and killed less(1) uncleanly as well with SIGPIPE, leaving the terminal in the wrong state. Fix this by giving less(1) its own process group and handing it control of the terminal, but in such a way that Ctrl-z (= SIGSTOP) still works: In that case, let man(1) stop itself, too, and let it continue the pager when it continues itself. Joint work with millert@ who contributed most of the expertise required, and also most parts of the code. OK deraadt@ millert@
2015-11-14The people who wrote this code are not on your sideStuart Henderson
2015-11-14Symbol table tells me to use pledge "stdio rpath wpath cpath"Theo de Raadt
2015-11-14Correct check flipped in earlier commit.Philip Guenther
Eliminate unnecessary isupper() tests before tolower() use ok millert@
2015-11-14Fix the obvious bug that with -z, every column was at least as wideIngo Schwarze
as the previous one. While here, shorten the -z code by one line.
2015-11-14mutli -> multiMiod Vallat
2015-11-14The character is an int so use %x not %hhx.Nicholas Marriott
2015-11-14The private use area at U+E000 to U+F8FF is not very useful if it isNicholas Marriott
width 0, make it width 1 instead.
2015-11-14All these return values from utf8_* are confusing, use an enum.Nicholas Marriott
2015-11-14Rename a variable in utf8_combine for consistency and use 0xfffd forNicholas Marriott
unknown Unicode.
2015-11-14Couple of assignments to remove compiler warnings.Nicholas Marriott
2015-11-14Be more strict about invalid UTF-8.Nicholas Marriott
2015-11-14Push stdout and stderr to clients more aggressively, and add an event toNicholas Marriott
continue if the send fails.
2015-11-14Log more of UTF-8 input.Nicholas Marriott
2015-11-14these files document their config files too: adjust NAME accordingly;Jason McIntyre
ok schwarze
2015-11-13Use crontab-style syslog calls in at.Todd C. Miller
Remove check_permission and just call allowed() directly.
2015-11-13There's no need for at.c globals to be extern.Todd C. Miller
2015-11-13Ev SHELL no longer relevant;Jason McIntyre
2015-11-13pledge tcpbench, from David Hill, tweaked the -s case.Sebastian Benoit
ok deraadt@
2015-11-13remove -d from SYNOPSIS;Jason McIntyre
2015-11-13Since rtable was hoisted to the top with setrtable, it should have noTheo de Raadt
bearing on the following pledge setups anymore. ok benno
2015-11-13move pledge(2) after setrtable(2), like in nc(1);Ingo Schwarze
OK deraadt@
2015-11-13pledge "stdio rpath wpath getpw inet tty" at startup. After openingTheo de Raadt
the socket and entering the main loop, pledge "stdio tty". For my next trick, I will be adding chacha20-poly1305 support.
2015-11-13Use setrtable() for the entire process, rather than doing it for theTheo de Raadt
socket later. Same idea as in nc(1).
2015-11-13Remove support for the debug command; noone needs setsockopt SO_DEBUGTheo de Raadt
2015-11-13Delete tracefile command. Tracefiles can now only be specified atTheo de Raadt
program startup. Who uses that? Noone... ok millert
2015-11-13remove support for !shellTheo de Raadt
ok millert
2015-11-13Add a flag argument to flush() to stop it calling quit() on error, thenNicholas Marriott
use this from quit() to stop less blowing up the stack looping through quit()/flush() if stderr is closed (for example "less /missing 2</dev/null"). ok millert
2015-11-13remove skey supportTheo de Raadt
ok millert
2015-11-13Log option names in fatal() for missing option.Nicholas Marriott
2015-11-13ratchet pledge from the start; from Theo BuehlerTheo de Raadt
2015-11-13Two spacing and spelling nits.Nicholas Marriott
2015-11-13Add window_visible_layout which ignores zoomed panes and use it forNicholas Marriott
control mode (which needs to know all panes), from George Nachman.
2015-11-13Break the message preparation bit of the main loop into its own functionNicholas Marriott
for less excessive level of indentation.
2015-11-13Call stat not lstat with -L, makes links actually be followed. ReportedNicholas Marriott
by and ok semarie@.
2015-11-13Long overdue change to the way we store cells in the grid: now, insteadNicholas Marriott
of storing a full grid_cell with UTF-8 data and everything, store a new type grid_cell_entry. This can either be the cell itself (for ASCII cells), or an offset into an extended array (per line) for UTF-8 data. This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the majority for most users) without the complexity of the shadow array we had before. Grid memory without any UTF-8 is about half. The disadvantage that cells can no longer be modified in place and need to be copied out of the grid and back but it turned out to be lot less complicated than I expected.
2015-11-13send SSH2_MSG_UNIMPLEMENTED replies to unexpected messages duringDamien Miller
KEX; bz#2949, ok dtucker@
2015-11-13Support "none" as an argument for sshd_config ForceCommand andDamien Miller
ChrootDirectory. Useful inside Match blocks to override a global default. bz#2486 ok dtucker@
2015-11-13support multiple certificates (one per line) and reading fromDamien Miller
standard input (using "-f -") for "ssh-keygen -L"; ok dtucker@
2015-11-13list a couple more options usable in Match blocks; bz#2489Damien Miller
2015-11-12Simplify the logic in mandoc_normdate() and add some comments.Ingo Schwarze
Also add a comment in time2a() explaining why it isn't possible to use just one single call to strftime(). Do some style cleanup while here. No functional change. Triggered by a very different patch from des@FreeBSD.
2015-11-12Rename overly-long utf8data to ud throughout.Nicholas Marriott
2015-11-12Never use LC_ALL. On the one hand, it can cause misformatting.Ingo Schwarze
On the other hand, it is a security risk because it might cause buffer overflows. Use LC_CTYPE only, that's all we need.
2015-11-12Use absolute paths in pathnames.h. There is no longer a need toTodd C. Miller
chdir(2) to the cron dir and cron(8) now changes to / via daemon(3). We no longer try to create/chmod the spool directories as they should be set correctly at install time. The setegid(crontab) has been moved to open_socket() so it is closer to the chmod(2) call that needs it. OK deraadt@ tedu@
2015-11-12with -V argument, dont set rtable on the socket, instead set if for the wholeSebastian Benoit
process, before pledge(). This way the rtable can be pledged too. the discussion about removing -V is postponed. diff from beck@, i wrote the same diff without seeing his, and various people at u2k15 agreed this is the right thing to do. ok phessler@
2015-11-12Back out of is_optchar() removal. daniel@ was not a fan.mmcc
2015-11-12Inline is_optchar(), a helper function with only one usage.mmcc
ok nicm@, stsp@
2015-11-12Remove xfree()'s prototype. tedu@ removed its definition a few weeksmmcc
ago. Pointed out by Ricardo Mestre.