| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
as `?' or `\ooo', depending on whether the -b or -B flags were used.
PR: 43995
MFC after: 1 month
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
|
|
| |
appropriate. Before this, a 2.9 GB file was misleadingly reported as
"2G". This mostly brings unit_adjust() in line with what is in du(1).
Reviewed by: jmallett
Approved by: nik
|
|
|
|
| |
for ages, and no-one seems to have noticed. Viva PAM!
|
|
|
|
|
|
|
|
| |
are later stripped with rmescapes() in expandarg(). If the filename has
already been unescaped, doing it again in rmescapes() can walk off the
end of the string, leading to memory corruption and eventually SIGSEGV.
Noticed by: kris
|
|
|
|
|
|
| |
reset with a call to va_start before each use of the va_list.
Obtained from: NetBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
| |
free-memory-and-reuse-it-after. Correct both problems and
make rcp -r work again under /etc/malloc.conf -> AJ.
|
| |
|
|
|
|
|
|
| |
commands. Commands like "if then ... fi" and "while do ... done" are no
longer accepted. Bodies of compound commands are still allowed to be
empty, because even though POSIX does not allow them, most shells do.
|
|
|
|
|
|
|
| |
%qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from
Makefile.
Tested on: alpha, sparc64, i386
|
|
|
|
|
|
|
|
|
| |
Instead use %ju and cast the argument.
WFORMAT=0 is still required in the Makefile because gcc warns about
some strftime() calls (I don't think this behaviour is useful.)
Tested on: sparc64, alpha, i386
|
|
|
|
|
|
| |
replaced by int instead of size_t.
Spotted by: fanf
|
|
|
|
|
|
|
| |
off_t is for offsets in files, and it is signed so it was no better
than the original type of int for avoiding warnings from broken lints,
except accidentally on machines like i386's where size_t is smaller
than off_t.
|
|
|
|
| |
MFC After: 1 week
|
| |
|
|
|
|
|
| |
using %td when we know that the number is between 0 and 9; mksyntax is a
build tool and needs to work on -stable.
|
| |
|
|
|
|
| |
in the previous commit.
|
|
|
|
|
| |
libc's vfprintf() that writes to a `struct output' instead of a file.
Inspired by NetBSD's similar changes (they used asprintf() instead).
|
|
|
|
| |
Tested on: alpha, i386, sparc64
|
|
|
|
|
|
| |
a program fails because the file or a path component does not exist.
Suggested by: bde
|
|
|
|
|
|
|
|
| |
- Cast rlim_t to intmax_t when printing it.
This should fix the last format errors in sh(1).
Tested on: i386, sparc64
|
|
|
|
| |
errors with %qd formats.
|
|
|
|
|
|
|
|
|
|
|
| |
pointers. This fixes two format warnings on 64 bits
archs which are fatal now that WFORMAT=0 has been removed.
It doesn't fully fix the sh(1) build on 64 bits platforms
though, there is still some quad_t issues that need to be
fixed.
Tested on: i386, sparc64
|
|
|
|
|
| |
on at least i386. If there are warnings on other archs, I'd rather hear
about them than pretend they didn't exist.
|
|
|
|
| |
function in libc.
|
|
|
|
|
|
| |
adding history and vi/emacs-style line editing to the shell itself.
Atty was a user-mode terminal emulator (like screen and window) that did
line editing and history.
|
|
|
|
| |
error message. Stops ulimit giving error messages like "ulimit: ulimit: xyz".
|
|
|
|
| |
us to accept this, but I've never seen a script that uses it.
|
|
|
|
|
|
|
| |
of autoconf are generating scripts that use this feature.
PR: 43275 35879
Submitted by: Dan Nelson <dnelson@allantgroup.com>
|
| |
|
|
|
|
| |
errmsg() and its table of error messages.
|
| |
|
| |
|
|
|
|
|
|
|
| |
tells people to type kill -l, when no valid ones are specified.
Sponsored by: Bright Path Solutions
MFC after: 4 days
|
|
|
|
|
| |
Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
| |
the cumulative exit status being overwritten when directory permissions
were being set. This was particularly bad when called from mv(1) to
perform a cross-device move as the original files were deleted even if
the copy failed.
Reported by: Slaven Rezic <slaven.rezic@berlin.de>
Patch by: bde
PR: 42789
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hack, thereby allowing future extensions to the structure (e.g., for extended
attributes) without rebreaking the ABI. FTSENT now contains a pointer to the
parent stream, which fts_compar() can then take advantage of, avoiding the
undefined behavior previously warned about. As a consequence of this change,
the prototype of the comparison function passed to fts_open() has changed
to reflect the required amount of constness for its use. All callers in the
tree are updated to use the correct prototype.
Comparison functions can now make use of the new parent pointer to access
the new stream-specific private data pointer, which is intended to assist
creation of reentrant library routines which use fts(3) internally.
Not objected to in spirit by: -arch
|
|
|
|
|
|
| |
size (which is mostly undefined anyway).
Submitted by: bde
|
|
|
|
|
| |
of a better name, except PINT, but I decided to go with assuming LONG to
be safe, rather than assuming INT.
|
|
|
|
|
|
|
|
| |
ps(1) formatting, using pgtok() to get the value in K, rather than printing
it in pages. This is consistent with behaviour before keyword.c:1.26 (et al)
which exists in STABLE today, and which uses the same metric as VSZ.
Submitted by: bde
|
| |
|
|
|
|
| |
constant.
|
|
|
|
| |
no-op. I assume it was meant that the close-on-exec flag be set here.
|
|
|
|
|
|
|
|
|
| |
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
|
|
|
|
| |
God I hate the backwards compatability crap here.
|
|
|
|
| |
Reviewed by: tjr
|