sbase/libutil
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.
2017-10-01 09:34:47 -07:00
..
concat.c concat: Use plain read/write instead of buffered stdio 2017-07-14 07:50:47 +02:00
cp.c cp: Only call chmod with -p or -a 2017-07-14 07:50:50 +02:00
crypt.c Don't use buffered IO (fread) when not appropriate 2017-07-03 21:04:14 +02:00
ealloc.c
enmasse.c Revert "enmasse: For the special case of 2 args, do not distinguish between dirs and files" 2015-11-13 14:31:34 +00:00
eprintf.c Check argv0 in xvprintf() 2015-12-21 14:13:36 +00:00
eregcomp.c code-style: whitespace fixes 2015-09-30 19:44:10 +01:00
estrtod.c
fnck.c
fshut.c Fix typo in libutil/fshut.c 2015-10-26 16:53:28 +00:00
getlines.c Properly increment line lenght on edge-case in getlines() 2016-03-10 08:48:09 +00:00
human.c
linecmp.c linecmp: Handle NUL bytes properly 2016-07-09 10:09:50 +01:00
md5.c
memmem.c Support NUL-containing lines in sort(1) 2016-03-10 08:48:09 +00:00
mkdirp.c mkdir: Fix created directory permissions 2017-07-03 21:03:11 +02:00
mode.c parsemode: No need to return after eprintf 2016-12-27 13:33:35 +01:00
parseoffset.c Use SSIZE_MAX for overflow check in parseoffset() 2015-11-26 10:35:46 +00:00
putword.c
reallocarray.c
recurse.c libutil/recurse: only opendir if recursing 2017-10-01 09:34:47 -07:00
rm.c Remove st != NULL checks from recursor functions 2017-07-03 21:03:02 +02:00
sha1.c
sha224.c add sha224sum and sha384sum 2016-02-24 10:15:16 +00:00
sha256.c add sha224sum and sha384sum 2016-02-24 10:15:16 +00:00
sha384.c add sha224sum and sha384sum 2016-02-24 10:15:16 +00:00
sha512-224.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 2016-02-24 10:40:57 +00:00
sha512-256.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 2016-02-24 10:40:57 +00:00
sha512.c add sha224sum and sha384sum 2016-02-24 10:15:16 +00:00
strcasestr.c code-style: whitespace fixes 2015-09-30 19:44:10 +01:00
strlcat.c
strlcpy.c
strsep.c
strtonum.c
unescape.c libutil/unescape: NULL terminate unescaped string 2017-03-24 10:40:32 +01:00
writeall.c libutil: Add writeall utility function 2017-07-03 21:04:12 +02:00