[Python-apps-team] Bug#926850: catfish: Default path exclusions fail if they match any fragment of the result path

Antonio Cebrián ancebfer at gmail.com
Thu Apr 11 11:01:03 BST 2019


Package: catfish
Version: 1.4.7-1

Default path exclusions ("~/.cache", "~/.gvfs" and "/dev") fail if they
match any fragment of the result path.

Test case:

mkdir ~/devel
touch ~/devel/123.txt
sudo mkdir /devel
sudo touch /devel/123.txt
sudo updatedb

locate 123.txt
# It founds both files.

catfish --start / 123.txt
# It doesn't found anything because result paths include "/dev" string.

Solution:
- Exclude paths must end with "/".
- Result paths must start with exclude path in order to be excluded.

Fix patch attached.

Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20190411/45f3b3c8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: catfish.patch
Type: text/x-patch
Size: 1155 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20190411/45f3b3c8/attachment-0001.bin>


More information about the Python-apps-team mailing list