Age | Commit message (Collapse) | Author |
|
|
|
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@
|
|
contents. This will be used for fuzzing; ok markus@
|
|
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@.
|
|
Based on the example presented by pfg.
OK otto@
|
|
By pfg@ from FreeBSD
OK millert@ and otto@
|
|
|
|
tweak and OK jmc@
|
|
- 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@
|
|
to tabify() already. Adapted from a diff by Jan Stary.
|
|
|
|
|
|
|
|
|
|
|
|
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@
|
|
Input & OK reyk.
|
|
|
|
fired then triple), and use for select-word and select-line in copy
mode. Inspired by a different solution from Omar Sandoval.
|
|
New changes:
* Fix msgbuf_write() usage idiom;
* Add context (function name) that fatal()ed;
* Use less fds on startup;
ok mlarkin@, reyk@
|
|
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.
|
|
|
|
so we basically get this for free.
requested by espie
ok deraadt
|
|
Found because of a hint by and OK schwarze@.
|
|
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@
|
|
|
|
|
|
Make the test's expectation less strict.
|
|
|
|
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
|
|
handle skipping consistently like other tests.
|
|
remove more dead code
|
|
|
|
|
|
|
|
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@
|
|
because it is not possible to keep the mouse on the border when the
minimum size is reached.
|
|
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@
|
|
to exit gracefully instead of fatal()ing.
ok reyk@
|
|
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@
|
|
patch from Jan Stary <hans at stare dot cz>;
"go ahead" jmc@
|
|
|
|
internals.
ok phessler@
|
|
OK dlg@
|
|
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@
|
|
upon successful and -1 on failure (as per POSIX). No functional change, just
improves portability.
requested by guenther@
looks correct to schwarze@
OK renato@
|
|
upon successful and -1 on failure (as per POSIX). No functional change, just
improves portability.
OK millert@ schwarze@ guenther@
|
|
- 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@
|
|
|
|
no functional change
|