]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Avoid the expense of an fstat, when possible.
authorJim Meyering <jim@meyering.net>
Mon, 15 May 2006 10:59:10 +0000 (10:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 May 2006 10:59:10 +0000 (10:59 +0000)
commit63deb758318c720fa271c458873999466ad2a0c3
tree3228a3b237d4ea3e217e53d038e520189119bc93
parentad17714291859a644946586ee953bda7d52a6cee
Avoid the expense of an fstat, when possible.

(O_NOFOLLOW, STREQ): Define.
(diropen_fd): Remove function.  Merge it into sole caller...
(diropen): ...here.  Use O_NOFOLLOW when appropriate.
(fts_safe_changedir): Call fstat for dev/inode check, only if the
previous open/openat call may have opened the wrong directory.
lib/fts.c