Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-16 | Ignore trailing slashes and skip over duplicate slashes in chk_path() to | Philip Guenther | |
avoid infinite loop when creating intermediate directories Fix based on diff by Nicolas Bedos (nicolas.bedos (at) gmail.com) ok millert@ ok and tweak zhuk@, | |||
2016-02-15 | To archive a 101 character absolute path in ustar format we must | Philip Guenther | |
split it on a slash other than the leading one. Fix based on patches from Peter Fokker (openbsd (at) berestijn.nl) and Peter Bisroev (peter (at) int19h.net) | |||
2016-02-08 | remove needless headers | mmcc | |
ok tb@, from Michal Mazurek | |||
2016-02-01 | stop linking mv(1) to libutil, since that isn't used. | Gleydson Soares | |
OK guenther@ nicm@ | |||
2016-02-01 | style nit - do not add a space between function name and bracket | Gleydson Soares | |
from Edgar Pettijohn <edgar at pettijohn-web.com> fix another similar space in line 127. (pointed out by/OK jung@) OK tb@ jung@ | |||
2016-02-01 | - make usage() static and __dead | Gleydson Soares | |
- while here switch main to return instead of exit(3) OK tedu@ | |||
2016-01-29 | Therefor -> Therefore (where appropriate) | tb | |
from ray@, ok jmc@ | |||
2016-01-26 | remove a useless macro | mmcc | |
ok nicm@ | |||
2016-01-18 | Fix a regression (and POSIX violation) introduced with UTF-8 support: | Ingo Schwarze | |
When neither running on a terminal nor with -q, names must be passed through as they are, nothing must be replaced with question marks. Effectively, -q was always in effect. SMALL was not affected. Triggered by a different patch from Martijn van Duren <openbsd plus tech at list dot imperialat dot at>, who confirmed that this version is better. Identified as a regression by tedu@. OK sthen@. | |||
2016-01-15 | Initialize a struct kill_info and an associated int in the declarations | mmcc | |
instead of scattering their initialization through the body. This makes the body simpler and avoids an uninitialized use false positive. ok nicm@ | |||
2016-01-13 | fix exit status on pledge fail, eval here should be 2. | Gleydson Soares | |
OK tb@ | |||
2016-01-10 | Partial revert: put back the file fmt.c. | Ingo Schwarze | |
It's no longer used by ps(1), but w(1) reaches around to it. Cluestick applied by deraadt@. | |||
2016-01-10 | UTF-8 support: | Ingo Schwarze | |
In a UTF-8 locale, columnate correctly and replace valid, but non- printable characters with the Unicode replacement character U+FFFD. No change in the C/POSIX locale, and no change for invalid bytes. Grand total, the code becomes shorter by almost 30 lines. Feedback from czarkoff@, OK millert@. | |||
2016-01-09 | Replace "function call" with "function" when referring to a function | mmcc | |
(well, a syscall, but this is the established practice) in the general sense. ok jmc@ | |||
2016-01-08 | Next step in UTF-8 support: | Ingo Schwarze | |
1. Improve all functions involving words by allowing non-ASCII characters to be part of words. 2. Allow insertion of non-ASCII characters without screwing up the display, by backing up to the start byte after inserting a continuation byte, and starting to re-print there. 3. Fix forward movement which i didn't get quite right in my previous commit: Always advance to a start byte, never to a final continuation byte, or the next insertion would split the character in the middle. OK mpi@ | |||
2016-01-07 | need to increase INT_MAX to 64 bits too. from Nathan Holstein | Ted Unangst | |
2016-01-06 | use int64_t for arithmetic. 64 bits ought to be enough for anyone. | Ted Unangst | |
ok deraadt millert schwarze | |||
2016-01-01 | don't declar main. from Michal Mazurek | Ted Unangst | |
2015-12-31 | Document the -h option for chmod and chflags, rewording the chgrp(1) and | Philip Guenther | |
chown(8) manpages to be consistent and clearer about it as well. | |||
2015-12-30 | add another combo for home/end keys that works in tmux. | Ted Unangst | |
ok bmercer gsoares nicm sthen | |||
2015-12-30 | rename a few variables/functions to avoid shadowing | Ted Unangst | |
2015-12-30 | rename global "e" to genv to avoid accidental shadowing and aliasing. | Ted Unangst | |
ok millert nicm tb | |||
2015-12-29 | fix exit status on pledge(2) failure. | Gleydson Soares | |
OK tb@ jsg@ | |||
2015-12-29 | Remove reference to $ERRNO, which was been unimplemented for >= 19 | mmcc | |
years. From Michael Reed. ok halex@ | |||
2015-12-27 | Tweak comment: we now always make a copy of argv. | Jeremie Courreges-Anglas | |
ok halex@ | |||
2015-12-27 | unconditionally duplicate the argv array on initialization, to make it | Alexander Hall | |
resilient against being altered by a subsequent shift operation tweak and ok semarie@ | |||
2015-12-27 | remove unused variable | Charles Longeau | |
ok tedu@ | |||
2015-12-26 | remove special characters; diff from michael reed | Jason McIntyre | |
2015-12-26 | Set the times, mode, and flags on symlinks when doing cp -p (or mv across | Philip Guenther | |
filesystems) problem noted by Carsten Kunze (carsten.kunze (at) arcor.de) | |||
2015-12-26 | Replace handrolled xfree() function by directly using free(3) | mestre | |
OK mmcc@ | |||
2015-12-24 | More adress -> address | mmcc | |
2015-12-22 | Assign pointer variables to NULL rather than 0. No functional change. | mmcc | |
2015-12-22 | Remove a needless allocation cast. No binary change. | mmcc | |
2015-12-21 | Replace an ugly bit of pointer arithmetic with a conditional expression. | mmcc | |
"seems sound" deraadt@ | |||
2015-12-16 | Replace "tame" by "pledge" in a comment. | tb | |
2015-12-14 | Move system headers from sh.h to those files that actually need them. | tb | |
ok mmcc@ a while ago | |||
2015-12-14 | Remove a superfluous macro. No binary change. ok tb@ | mmcc | |
2015-12-10 | In emacs command-line editing mode, make sure that moving left and | Ingo Schwarze | |
right can only move by whole characters, not into the middle of a character, and that deleting characters can only delete characters whole, not individual bytes out of characters. Based on parts of a patch by Frederic Nowak <fnwk at mailbox dot org>, tweaked by me. OK tedu@ semarie@ mpi@ | |||
2015-12-09 | Remove NULL-check before free(). ok tb@ | mmcc | |
2015-12-06 | Remove a 250-line catalog of AT&T ksh bugs. ok tedu | mmcc | |
2015-12-06 | pledge "dpath" to allow creation of nodes via mkfifo(2) and mknod(2) | Theo de Raadt | |
NOTE: dpath requires a fairly new kernel ok semarie | |||
2015-12-06 | Use __progname instead of manually handling argv[0]. | Tobias Stoeckmann | |
ok deraadt, mmcc, tedu | |||
2015-12-05 | Remove some more pdksh-specific stuff and references to files that no | mmcc | |
longer exist. | |||
2015-12-05 | Remove descriptions of files that no longer exist. | mmcc | |
2015-12-05 | Remove needless reference to LEGAL, which is likely outdated itself. | mmcc | |
2015-12-05 | Remove some bug report guidelines from pdksh that aren't relevant to us. | mmcc | |
2015-12-02 | comment typo | mmcc | |
2015-12-01 | Support UTF-8: use wcwidth(3) for column adjustment and replace | Ingo Schwarze | |
non-printable Unicode codepoints and invalid bytes with ASCII question marks. No change for the SMALL version. Using ideas developed by tedu@, phessler@, bentley@ and feedback from many. OK yasuoka@ czarkoff@ sthen@. | |||
2015-11-27 | the rm code in mv inherited pledge from rm. it shoud be safe, but there | Ted Unangst | |
are cases when it is too strict. after pledge() we continue to run some of the cp code which requires a very broad set of permissions. remove pledge entirely for now, pending a complete analysis of needs. | |||
2015-11-27 | Use strlcpy to copy strings in struct mount, not memmove. Avoids | Todd C. Miller | |
reading past the end of a buffer. Problem found and OK jsg@ |