[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54913] find: "-type"-test wrong on bind-mounted char device

From: Bernhard Voelker
Subject: [bug #54913] find: "-type"-test wrong on bind-mounted char device
Date: Tue, 30 Oct 2018 19:18:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Update of bug #54913 (project findutils):

             Assigned to:                    None => berny                  


Follow-up Comment #1:

Nice catch - and a surprising use case of bind mounts!

And it's interesting that the output of the -ls action shows
the correct type again - of course, because that needs to do an
additional stat() on the file.

FWIW: this issue happens with all non-directory bind-mounts
on top of another type, e.g.
- socket -> regfile,
- regfile -> socket,
- character file -> socket
and so on.

I'll have to check if the change is done on the right place;
similar adjustment based on ent->ftsinfo are also in consider_visiting().

Furthermore, I'd like to get the coreutils-style test-framework
from gnulib into findutils, so that we could also have tests
like for this issue which require 'root' permissions.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]