]> git.ipfire.org Git - thirdparty/util-linux.git/commit
whereis: make subdirs scan more robust
authorKarel Zak <kzak@redhat.com>
Thu, 23 May 2019 11:53:00 +0000 (13:53 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 May 2019 11:53:00 +0000 (13:53 +0200)
commita2761af42be7a8a9e611e3188e58b6340c822282
tree6c470c59debe111491fe41ac067fbb930e5709e6
parent106e6960649b4b9ddc2b5dd156c19272169899d6
whereis: make subdirs scan more robust

* call strchr() only once
* avoid things like strcat(buf, strchr(dir, '*') + 1)
* make it more readable
* improve debug messages

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/whereis.c