summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-05-19 14:23:54 +0000
committeravg <avg@FreeBSD.org>2009-05-19 14:23:54 +0000
commit960bfa71a8a6e8c40490879e82649ed63a54d4a8 (patch)
treea06959b26a50fc91f24df7c7798d54296726df29 /usr.sbin/pkg_install/lib
parent89d59b82b380fc829a85cee601c9e2b7f5ed04d6 (diff)
downloadFreeBSD-src-960bfa71a8a6e8c40490879e82649ed63a54d4a8.zip
FreeBSD-src-960bfa71a8a6e8c40490879e82649ed63a54d4a8.tar.gz
find: do not silently disable -L when -delete is used
First of all, current behavior is not documented and confusing, and it can be very dangerous in the following sequence: find -L . -type l find -L . -type l -delete (the second line is even suggested by find(1)). Instead simply refuse to proceed when -L and -delete are both used. A descriptive error message is provided. The following command can be safely used to remove broken links: find -L . -type l -print0 | xargs rm -0 To do: update find(1) PR: bin/90687 Obtained from: Anatoli Klassen <anatoli@aksoft.net> Approved by: jhb (mentor)
Diffstat (limited to 'usr.sbin/pkg_install/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud