summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-11Rename 'i' to 'hlen' for greater readability; ok millert, naddyMike Belopuhov
2016-10-11fix the KEX fuzzer - the previous method of obtaining the packet contentsDamien Miller
was broken. This now uses the new per-packet input hook, so it sees exact post-decrypt packets and doesn't have to pass packet integrity checks. ok markus@
2016-10-11Add a per-packet input hook that is called with the decrypted packetDamien Miller
contents. This will be used for fuzzing; ok markus@
2016-10-11Partial UTF-8 line editing support for ksh(1) vi input mode;Ingo Schwarze
so far, it covers these commands: a h i l x / This is an isu8cont()-based hack similar in style to what i did in emacs input mode, but less elegant and slightly more intrusive because the vi mode code is much more ugly and less straightforward than the emacs mode code. This one required partial rewrites of a few helper functions, and comments were added while there. This is not perfect, but hopefully reduces people's cursing until a more rigorous solution can be devised (much) later. Some polishing may be useful in tree, in particular adding utf8cont() support to a few missing commands. Mostly written shortly after Christmas 2015. Reminded by and OK czarkoff@. Feedback, partial review and testing, no longer any objection by martijn@. Feedback and testing by tb@. Also read fine to nicm@.
2016-10-11Add a regression test for the off by one bug reported by pfg.Martijn van Duren
Based on the example presented by pfg. OK otto@
2016-10-11Fix an off by one error when no matches were found in a substitute.Martijn van Duren
By pfg@ from FreeBSD OK millert@ and otto@
2016-10-11syncTheo de Raadt
2016-10-11link to http://mdocml.bsd.lv/mdoc/ below SEE ALSO;Ingo Schwarze
tweak and OK jmc@
2016-10-11Small code improvements:Rafael Zalamena
- use the same idiom as switchd(8) to calculate alignment; - use oxm_value instead of doing pointer arithmetic; - typo fix: 'recived' -> 'received'; - remove unused variable; - use definition instead of hardcoded value; ok reyk@
2016-10-11Make the "all" global variable local to main() since it is passedTodd C. Miller
to tabify() already. Adapted from a diff by Jan Stary.
2016-10-11Remove now-unused pathnames.h, from Jan StaryTodd C. Miller
2016-10-11Some other stuff that can be local to one file.Nicholas Marriott
2016-10-11Add static in window-*.c and move some internal functions out of tmux.h.Nicholas Marriott
2016-10-11missing .Fl macro, from Jan StaryIngo Schwarze
2016-10-11Ports can be built with several (not just two) lua versions.Jeremie Courreges-Anglas
2016-10-11Remove vic(4)'s BUGS section that I added in 2006 when people wereReyk Floeter
still terrified about VMs - vic(4) was the first driver for a virtual interface in OpenBSD. The statement is still true but we all got used to the obvious fact: "BUGS There are tons of bugs in VMware and the underlying host operating systems. Please consider that the security of the OpenBSD guest can be circumvented by attacking the host environment." OK mikeb@
2016-10-11Move Hyper-V integration components into a separate source fileMike Belopuhov
Input & OK reyk.
2016-10-11Strengthen Ethernet packet length checks on input; ok dlgMike Belopuhov
2016-10-11Support double and triple clicks (they are cumulative, so double isNicholas Marriott
fired then triple), and use for select-word and select-line in copy mode. Inspired by a different solution from Omar Sandoval.
2016-10-11Sync proc.c file vmd(8) and switchd(8).Rafael Zalamena
New changes: * Fix msgbuf_write() usage idiom; * Add context (function name) that fatal()ed; * Use less fds on startup; ok mlarkin@, reyk@
2016-10-11Fundamental change to how copy mode key bindings work:Nicholas Marriott
The vi-copy and emacs-copy mode key tables are gone, and instead copy mode commands are bound in one of two normal key tables ("copy-mode" or "copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So: bind -temacs-copy C-Up scroll-up bind -temacs-copy -R5 WheelUpPane scroll-up Becomes: bind -Tcopy-mode C-Up send -X scroll-up bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up This allows the full command parser and command set to be used - for example, we can use the normal command prompt for searching, jumping, and so on instead of a custom one: bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'" command-prompt also gets a -1 option to only require on key press, which is needed for jumping. The plan is to get rid of mode keys entirely, so more to come eventually.
2016-10-11Support UTF-8 entry into the command prompt.Nicholas Marriott
2016-10-11Enable the noperm option for mount_mfs. mfs is ffs in sheeps clothing,Martin Natano
so we basically get this for free. requested by espie ok deraadt
2016-10-11Reimplement g flag for s commands. Got lost in previous commit.Martijn van Duren
Found because of a hint by and OK schwarze@.
2016-10-10Modify httpd(8)'s proc.c to use less file descriptors during the daemonRafael Zalamena
start up. To achieve this proc_init() initiates only the necessary pipes between child and parent, allocate and distribute fds in proc_connect(). In case of configuration checks ('-n') we do nothing in proc_init() and proc_connect(). ok reyk@
2016-10-10Add static in cmd-* and fix a few other nits.Nicholas Marriott
2016-10-10Loads more static, except for cmd-*.c and window-*.c.Nicholas Marriott
2016-10-10The TLS error message depends on the generated fake certificate.Alexander Bluhm
Make the test's expectation less strict.
2016-10-10Reshuffle GUID device ID table and add $ tags to headersMike Belopuhov
2016-10-10Unregister the KEXINIT handler after message has been received.Markus Friedl
Otherwise an unauthenticated peer can repeat the KEXINIT and cause allocation of up to 128MB -- until the connection is closed. Reported by shilei-c at 360.cn
2016-10-10Move check for sysctl settings from shell script to makefile toAlexander Bluhm
handle skipping consistently like other tests.
2016-10-10don't need to worry about pre/post order and skipping directories.Ted Unangst
remove more dead code
2016-10-10zap extra includesTed Unangst
2016-10-10remove some more dead code. (previous diff from Jan Stary)Ted Unangst
2016-10-10remove some dead code that's only used in rmTed Unangst
2016-10-10Remove infinite loop detection from the s-command.Martijn van Duren
If a zero-length match is found do the replacement and increment the start point for the next search by one. This allows for commands like s/^/- / This brings the behaviour closer to the way sed and vi work. OK schwarze@
2016-10-10Do not allow the opposite pane to resize when dragging with the mouseNicholas Marriott
because it is not possible to keep the mouse on the border when the minimum size is reached.
2016-10-10Fixup the example for msgbuf_write() and imsg_read() to check theReyk Floeter
error cases for -1 and 0 explicitly (it initially only checked for -1, I updated it to also check for 0, and rzalamena@ figured out that 0 has to be checked in a differently). OK millert@ rzalamena@
2016-10-10Fix msgbuf_write() usage idiom and modify the treatment for socket closeRafael Zalamena
to exit gracefully instead of fatal()ing. ok reyk@
2016-10-10Stop pretending we use RFC 3046/Option 82/Relay Agent Information.Kenneth R Westerback
RFC 3042 says servers that do not understand the option will not echo it. Plus, our desultory attempt at echoing was almost certainly broken for OFFERs (use after free of packet data) and not even attempted for NACKs. ok millert@
2016-10-10improve .Bl -tag -width for -Tps mode;Ingo Schwarze
patch from Jan Stary <hans at stare dot cz>; "go ahead" jmc@
2016-10-10Some more static.Nicholas Marriott
2016-10-10Add more context to fatal*() messages so it makes easier to debug proc.cRafael Zalamena
internals. ok phessler@
2016-10-10Fix typo "bfp".Alexander Bluhm
OK dlg@
2016-10-10ensure prepended ethernet headers are placed on ETHER_ALIGN boundaries,David Gwynne
even if m_prepend allocates a new mbuf in front of the current one. this is done by asking M_PREPEND for ETHER_HDR_LEN + ETHER_ALIGN bytes, and then calling m_adj(ETHER_ALIGN) after. in the case M_PREPEND does not allocate a new mbuf and ends up with the same layout as before. in the allocation case, the requested length is provided on a long boundary. an ETHER_HDR_LEN request would therefore be 6 bytes allocated on a long boundary, when we want it to be at ETHER_ALIGN. by asking for ETHER_HDR_LEN plus ETHER_ALIGN, we can m_adj ETHER_ALIGN off to get us to the ETHER_ALIGN offset. ok yasuoka@ mikeb@
2016-10-10calls to uname(3) should be checked against non-negative valueGleydson Soares
upon successful and -1 on failure (as per POSIX). No functional change, just improves portability. requested by guenther@ looks correct to schwarze@ OK renato@
2016-10-10calls to uname(3) should be checked against non-negative valueGleydson Soares
upon successful and -1 on failure (as per POSIX). No functional change, just improves portability. OK millert@ schwarze@ guenther@
2016-10-10- mark delim variable as const. it is a literal string;Gleydson Soares
- no need to declare main() prototype; - mark all functions as static; - add __dead marker to usage(), since it doesn't return; - zap extern *optarg/optind in main(), It is already done in unistd.h; - return from main instead of exit(3) that enables stack protector; - fix err() eval in pledge()s error path. OK millert@
2016-10-10syncTheo de Raadt
2016-10-10white space fixes.David Gwynne
no functional change