URL: <https://savannah.gnu.org/bugs/?54913>
Summary: find: "-type"-test wrong on bind-mounted char device Project: findutils Submitted by: ametzler Submitted on: Mon 29 Oct 2018 06:59:31 PM CET Category: find Severity: 3 - Normal Item Group: Wrong result Status: None Privacy: Public Assigned to: None Originator Name: Mathieu Parent Originator Email: Open/Closed: Open Discussion Lock: Any Release: None Fixed Release: None _______________________________________________________ Details: Hello, this was reported as https://bugs.debian.org/912180 by Mathieu Parent. He also provided the attached to fix the issue. I have verified the bug, and that the patch makes the issue unreproducible. ----------------- Hi, The following testcase: mkdir foo mknod foo/null c 1 3 touch foo/bindmntoverfile mount --bind foo/null foo/bindmntoverfile find foo -type f -ls 3857271640 0 crw-r--r-- 1 root root 1, 3 Oct 24 07:50 foo/bindmntoverfile i.e "-type f" wrongly matches a char device. The attached patch fixes this. Regards Mathieu Parent _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 29 Oct 2018 06:59:31 PM CET Name: 0001-Ensure-type-is-checked-with-FTS_NSOK-and-FTS_NS.patch Size: 1KiB By: ametzler Patch provided in Debian report <http://savannah.gnu.org/bugs/download.php?file_id=45323> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?54913> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/