summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-05-07UTF-8 cleanup of the function pappend():Ingo Schwarze
Use the standard function mbrtowc(3) to distinguish valid, incomplete, and invalid multibyte characters, getting rid of five calls to functions and macros that we want to phase out, and of one goto. Add comments. OK millert@.
2019-05-07Rename the ENVIRONMENT section which was squatting on the standardIngo Schwarze
manual page section and create a new ENVIRONMENT with the expected content. Move some information that was misplaced below the -u flag into that new section. Feedback and OK nicm@ jmc@ tb@
2019-05-07Treat keys in identify mode (display-panes) specially and handle themNicholas Marriott
immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@.
2019-05-07Do not use evbuffer_add_buffer because it is destructive and doesn'tNicholas Marriott
work in newer libevent.
2019-05-06Remove an example that doesn't do what the accompanying text says,Ingo Schwarze
with the current formatting. OK benno@ naddy@ The original suggestion to delete it rather than fix it came from deraadt@: we do not want to encourage use of --rsync-path because it is important that the openrsync client smoothly works with the Samba rsync server. If it doesn't, we should fix it and not fragment the ecosystem.
2019-05-03Fix order of insertion in load_cfg.Nicholas Marriott
2019-05-03Allow panes to be empty (no command), output can be piped to them withNicholas Marriott
split-window or display-message -I.
2019-05-03Insert after the right element on queue.Nicholas Marriott
2019-05-03Do not store the mouse position we calculate as the start of a drag backNicholas Marriott
into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710.
2019-05-03avoid duplicate "bad argument" error message, also shortening the codeIngo Schwarze
2019-05-03Enter dangling .so links into the database, to avoid harassingIngo Schwarze
users of man(1) about running makewhatis(8), which won't help. Seeing the content of the broken .so request might even help users to figure out how to access the manual page they want. Fixing the last issue reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Use the right index for user-keys.Nicholas Marriott
2019-05-03When processing unknown output options, prevent passing NULL to printf.anton
ok schwarze@
2019-05-03In fs_lookup(), use stat(2) rather than access(2) to check file existence.Ingo Schwarze
Some mildly broken real-world packages on some operating systems contain dangling symlinks in manual page directories: pestering the user to run makewhatis(8) makes no sense because that won't help. On the other hand, missing read permissions deserve ugly error messages and are unlikely to occur in practice anyway. Fixing an issue reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Fix mouse positioning when the pane is not entirely visible.Nicholas Marriott
2019-05-03In man(1) mode with a specific section requested,Ingo Schwarze
try harder to find the best match. Use this order of preference: 1. The section in both the directory name and the file name matches exactly. 2. The section in the file name matches exactly. 3. The section in the directory name matches exactly. 4. Neither of them matches exactly. The latter can happen when mansearch() finds substring matches or when the second .Dt argument mismatches the dir and file names. Lorenzo Beretta <loreb at github> reported that this caused real problems on Void Linux, like "man 3 readline" showing readline(3m). See https://github.com/void-linux/void-packages/issues/9868 for details.
2019-05-03Correct ordering when adding after an existing item.Nicholas Marriott
2019-05-03Instead of processing keys all together, put them up on the clientNicholas Marriott
command queue so they are ordered correctly with the commands that they execute.
2019-05-03Fix reverse attribute in status line, GitHub issue 1709.Nicholas Marriott
2019-05-03In man(1) mode, when the first argument starts with a digit,Ingo Schwarze
optionally followed by a letter, and at least one more argument follows, interpret the first argument as a section name even when additional characters follow after the digit and letter. This is needed because many operating systems have section names consisting of a digit followed by more than one letter - for example Illumos, Solaris, Linux, even NetBSD. There is very little risk of regressions: in the whole corpus of manual pages on man.openbsd.org, there isn't a single manual page name starting with a digit. And even if programs like "0ad" or "4channels" had manual pages, "man 0ad" and "man -a cat 0ad" would still work, only "man -a 0ad cat" will fail with "man: No entry for cat in section 0ad of the manual." Fixing one of the issues reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Use the correct (according to POSIX) format for left-justificationDarren Tucker
in snmprintf. bz#3002, patch from velemas at gmail.com, ok markus@.
2019-05-03Free channel objects on exit path. Patch from markus at blueflash.cc,Darren Tucker
ok deraadt
2019-05-03Free host on exit path. Patch from markus at blueflash.cc, ok djm@Darren Tucker
2019-05-03Wrap XMSS including in ifdef. Patch from markus at blueflash.cc, ok djmDarren Tucker
2019-05-02Fix up some bits about window-size that seem to have got lost.Nicholas Marriott
2019-05-01update currency exchange rates;Jason McIntyre
2019-05-01Remove unused variable from Thomas Adam.Nicholas Marriott
2019-04-30In man(1) mode, i.e. when asking for a single manual page by name,Ingo Schwarze
prefer file name matches over .Dt/.TH matches over first NAME matches over later NAME matches, but do not change the ordering for apropos(1) nor for man -a. This reverts main.c rev. 1.213 and mansearch.h rev. 1.23 and includes a partial revert of mansearch.c rev. 1.62. Regression reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-04-30add unveil(2):Ricardo Mestre
chpass(1) without parameters enters in edit mode by default, in here it will need to execute _PATH_BSHELL to spawn a new EDITOR, _PATH_SHELLS to check (read) if we are changing from/to a non-standard shell (in case we are not root) and read access to `tempname' to verify if the file has valid entries and create to unlink it. If -s is used to change a user's shell then it will need read access to _PATH_SHELLS by the same reason already mentioned above. Unconditionally we need to unveil _PATH_MASTERPASSWD_LOCK with write/create permissions, _PATH_MASTERPASSWD with read and _PATH_PWD_MKDB to execute pwd_mkdb(8). In the -a case I'm not unveiling /etc/spwd.db since we can get it through pledge "getpw", which can be added later for completeness of all code paths. Note also that the first pledges need "unveil" since we will call unveil(2) afterwards. "looks good" deraadt@
2019-04-30Fix user options after show-hooks merge, GitHub issue 1704.Nicholas Marriott
2019-04-30In HTML output, allow switching the desired font for subsequentIngo Schwarze
text without printing an opening tag right away, and use that in the .ft request handler. While here, garbage collect redundant enum htmlfont and reduce code duplication in print_text(). Fixing an assertion failure reported by Michael <Stapelberg at Debian> in pmRegisterDerived(3) from libpcp3-dev.
2019-04-30improve the description of the message "blank line in fill mode";Ingo Schwarze
triggered by a misunderstanding by sashan@
2019-04-30Don't redraw control clients, from George Nachman.Nicholas Marriott
2019-04-30Fix memory leak in window tree search, from Amos Bird.Nicholas Marriott
2019-04-29Add support for keys to jump between matching brackets - C-M-f and C-M-bNicholas Marriott
in emacs, % in vi. Suggested by and help from Chris Barber in GitHub issue 1666.
2019-04-28Support multiple occurances of the same argument. Use this for a newNicholas Marriott
flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697.
2019-04-28Fix reading route entries via kvm(3).Martin Pieuchot
From Naoki Fukaumi, ok yasuoka@, sthen@
2019-04-27Only apply sign extension when less than eight bytes have been consumed. Thisrob
fixes a problem when handling large negative integers. ok claudio@
2019-04-26There was an extra newline in some cases and missing one in others.Todd C. Miller
OK joris@
2019-04-26Merge hooks into options and make each one an array option. This allowsNicholas Marriott
multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
2019-04-26Destroy panes before options to avoid crash when forced into a mode by aNicholas Marriott
hook.
2019-04-26Unbreak main-vertical and main-horizontal layouts.Nicholas Marriott
2019-04-26Import regenerated moduli.Darren Tucker
2019-04-25options_array_item_value cannot return NULL.Nicholas Marriott
2019-04-25Need a fallback for -2 for aixterm colours.Nicholas Marriott
2019-04-25Make options_tostring allocate its result instead of using a stackNicholas Marriott
buffer (needed for something in the future).
2019-04-25Need to escape ].Nicholas Marriott
2019-04-25Automatically scroll if dragging to create a selection with the mouseNicholas Marriott
and the cursor reaches the top or bottom line.
2019-04-24Use bg not fg when adjusting for aixterm, from Ailin Nemui.Nicholas Marriott
2019-04-24Use setaf/setab for aixterm colours, from Ailin Nemui.Nicholas Marriott