]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stat: avoid redundant stat() calls
authorPádraig Brady <P@draigBrady.com>
Thu, 29 May 2014 15:44:50 +0000 (16:44 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 1 Jun 2014 11:14:24 +0000 (12:14 +0100)
commit39d1c9576a3f2e5e65c5fb06744aa7245d743bc0
treeea1683d5396339976ee9eb60c502d677d0f3a573
parent25a2c948b24163ce0e0e9e52f6a5fef33d7d7842
stat: avoid redundant stat() calls

* src/stat.c (find_bind_mount): NAME is invariant in the loop,
so only stat(NAME) outside the loop.
src/stat.c