You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Forney fdb9084da9 libutil/recurse: Simplify adding trailing slash
We know that r->pathlen < sizeof(r->path) since r->path is
nul-terminated, so we can safely add a '/' here. If there is no
space left over for the rest of the path and nul-terminator, this
will be caught by the subsequent estrlcpy.
3 years ago
..
concat.c concat: Use plain read/write instead of buffered stdio 6 years ago
cp.c Use *at functions with appropriate flags instead of lstat/lchown 3 years ago
crypt.c Don't use buffered IO (fread) when not appropriate 6 years ago
ealloc.c add estrndup 8 years ago
enmasse.c Revert "enmasse: For the special case of 2 args, do not distinguish between dirs and files" 8 years ago
eprintf.c Check argv0 in xvprintf() 8 years ago
eregcomp.c code-style: whitespace fixes 8 years ago
estrtod.c Rename util/ to libutil/ 9 years ago
fnck.c Refactor enmasse() and recurse() to reflect depth 8 years ago
fshut.c Fix typo in libutil/fshut.c 8 years ago
getlines.c libutil/getlines: Use reallocarray 3 years ago
human.c Use off_t in humansize() as it is more descriptive and applicable 8 years ago
linecmp.c linecmp: Handle NUL bytes properly 7 years ago
md5.c Rename util/ to libutil/ 9 years ago
memmem.c Support NUL-containing lines in sort(1) 7 years ago
mkdirp.c mkdir: Fix created directory permissions 6 years ago
mode.c chmod: Implement X perm symbol 3 years ago
parseoffset.c Use SSIZE_MAX for overflow check in parseoffset() 8 years ago
putword.c Actually print <space> to stream in putword() too 8 years ago
reallocarray.c libutil: Add enreallocarray 4 years ago
recurse.c libutil/recurse: Simplify adding trailing slash 3 years ago
rm.c libutil/recurse: Use a single path buffer, and directory fd 3 years ago
sha1.c Rename util/ to libutil/ 9 years ago
sha224.c add sha224sum and sha384sum 7 years ago
sha256.c add sha224sum and sha384sum 7 years ago
sha384.c add sha224sum and sha384sum 7 years ago
sha512-224.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 7 years ago
sha512-256.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 7 years ago
sha512.c add sha224sum and sha384sum 7 years ago
strcasestr.c code-style: whitespace fixes 8 years ago
strlcat.c Add estrlcat() and estrlcpy() 8 years ago
strlcpy.c Add estrlcat() and estrlcpy() 8 years ago
strsep.c Import strsep() from musl libc 8 years ago
strtonum.c Use strtonum and libutf in test(1), refactor code and manpage 8 years ago
unescape.c libutil/unescape: NULL terminate unescaped string 6 years ago
writeall.c libutil: Add writeall utility function 6 years ago