]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: retire stat(3) when access(3) does better job
authorSami Kerola <kerolasa@iki.fi>
Sat, 31 Oct 2015 19:21:15 +0000 (19:21 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Nov 2015 08:56:14 +0000 (09:56 +0100)
commitd0a050e0f9343f3da7c3b865eff78ce36df14f2c
tree8fff6110f3babb152261fd7c398e527c17dcba7d
parent8df370d340a9c4aceb36662aeecd63d0c08b44c8
fsck: retire stat(3) when access(3) does better job

The stat(3) and access(3) are in this case almost interchangeable, so choose
the lightweight function with additional advantage checking the file is
executable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/fsck.c