1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

0.4.1 2014-02-11

- do not require files given on command line are regular files,
    but accept any non-directory (for instance, symlinks).

    Workaround for previous versions: use --no-find if you intend to
    look up non-regular files.
This commit is contained in:
Matthias Andree 2014-02-11 22:50:26 +00:00
parent c1d655e918
commit 6b166fc790
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343829
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pkgs_which
PORTVERSION= 0.4.0
PORTVERSION= 0.4.1
CATEGORIES= ports-mgmt perl5
MASTER_SITES= # none
DISTFILES= # none

View File

@ -298,7 +298,7 @@ exit $rc;
sub wanted {
my ($dev,$ino,$mode,$nlink,$uid,$gid);
if ((($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -f _)
if ((($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && ! -d _)
{
# only record clean names
if ($_ =~ $UNTAINT and $1) {
@ -406,6 +406,13 @@ L<pkg_info>(8), L<portmaster>(8), L<portupgrade>(8), L<pkg_which>(8)
=head1 HISTORY
0.4.1 2014-02-11
- do not require files given on command line are regular files,
but accept any non-directory (for instance, symlinks).
Workaround for previous versions: use --no-find if you intend to
look up non-regular files.
0.4.0 2013-11-28
- support pkgNG. Known issue is that pkg which returns bogus exit
codes, spamming your screen. pkgs_which works nonetheless.