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.
David Phillips 69b9c2444b libutil/recurse: only opendir if recursing
Previous behaviour was to call opendir regardless of if we are actually going
to be recursing into the directory. Additionally, some utilities that use
DIRFIRST benefit from running the function pointed to by fn before the call
to opendir. One such example is `chmod [-R] 777 dir` on a directory with mode
000, where it will be expected for chmod to first give itself rwx before
optionally listing the directory to traverse it.
6 years ago
..
concat.c concat: Use plain read/write instead of buffered stdio 6 years ago
cp.c cp: Only call chmod with -p or -a 6 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 Properly increment line lenght on edge-case in getlines() 7 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 parsemode: No need to return after eprintf 7 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 Implement mallocarray() 8 years ago
recurse.c libutil/recurse: only opendir if recursing 6 years ago
rm.c Remove st != NULL checks from recursor functions 6 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