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
..
2017-07-14 07:50:50 +02:00
2015-02-11 01:17:21 +00:00
2015-12-21 14:13:36 +00:00
2015-09-30 19:44:10 +01:00
2014-11-17 16:48:34 +00:00
2015-10-26 16:53:28 +00:00
2016-07-09 10:09:50 +01:00
2014-11-17 16:48:34 +00:00
2015-03-10 22:19:19 +01:00
2014-11-17 16:48:34 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2015-09-30 19:44:10 +01:00
2015-03-17 11:24:49 +01:00
2015-03-17 11:24:49 +01:00
2015-01-25 17:48:11 +00:00