]> git.ipfire.org Git - thirdparty/util-linux.git/commit
bash-completion: Exclude /dev/fd from fsck find
authorKevin Locke <kevin@kevinlocke.name>
Mon, 30 Oct 2017 19:50:51 +0000 (13:50 -0600)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Dec 2017 14:24:57 +0000 (15:24 +0100)
commit39ab4e85da8c39166aa6cd093248bd146978fb00
treea3d700375ae3208144373398892e4646d821f2da
parent398c2e870d86f101f32d9815b3a582a232746e30
bash-completion: Exclude /dev/fd from fsck find

When the bash-completion for fsck runs `find -L /dev/ -type b` it
descends into /dev/fd after opening '.' as file descriptor 3.  This
causes find to search through /dev/fd/3/ which includes everything below
the current directory, which can take a very long time.

To avoid this, prune /dev/fd in the find expression.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
bash-completion/fsck