]> 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)
committerKevin Locke <kevin@kevinlocke.name>
Mon, 30 Oct 2017 20:12:55 +0000 (14:12 -0600)
commitd22c1f533275ebf7060d9aa6dffc3ef265e81176
tree15d2c454b19878175fe8207e8ecc4a8f1b344fa2
parentda964963220dc0b60a0725095fe7c3072a083927
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