diff options
author | 2012-06-19 18:56:07 +0000 | |
---|---|---|
committer | 2012-06-19 18:56:07 +0000 | |
commit | 3c6e63d93583b42df99f8d6cec5a344abc5b0e31 (patch) | |
tree | e9139f39a9f58e1f300d968c6526c9eb1a1687e9 | |
parent | Use calloc() instead of malloc() for allocating the disk stats. (diff) | |
download | wireguard-openbsd-3c6e63d93583b42df99f8d6cec5a344abc5b0e31.tar.xz wireguard-openbsd-3c6e63d93583b42df99f8d6cec5a344abc5b0e31.zip |
avoid shell code errors
unneeded eval
okay jasper@
-rw-r--r-- | usr.bin/libtool/LT/Library.pm | 4 | ||||
-rwxr-xr-x | usr.bin/libtool/libtool | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/libtool/LT/Library.pm b/usr.bin/libtool/LT/Library.pm index 5f1e7eca9ac..672092e575f 100644 --- a/usr.bin/libtool/LT/Library.pm +++ b/usr.bin/libtool/LT/Library.pm @@ -1,4 +1,4 @@ -# $OpenBSD: Library.pm,v 1.1 2012/06/19 09:30:44 espie Exp $ +# $OpenBSD: Library.pm,v 1.2 2012/06/19 18:56:07 espie Exp $ # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org> # @@ -139,7 +139,7 @@ sub inspect return; } LT::Trace::debug {"inspecting $filename for library dependencies...\n"}; - open(my $fh, '-|', "objdump -p $filename"); + open(my $fh, '-|', "objdump", "-p", "--", $filename); while (<$fh>) { if (m/\s+NEEDED\s+(\S+)\s*$/) { push @deps, $1; diff --git a/usr.bin/libtool/libtool b/usr.bin/libtool/libtool index 74d2dcc77f8..a536dceb85c 100755 --- a/usr.bin/libtool/libtool +++ b/usr.bin/libtool/libtool @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: libtool,v 1.1 2012/06/19 09:30:44 espie Exp $ +# $OpenBSD: libtool,v 1.2 2012/06/19 18:56:07 espie Exp $ # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org> # @@ -704,6 +704,6 @@ sub is_wrapper my $program = shift; open(my $pw, '<', $program) or die "Cannot open $program: $!\n"; - return eval(grep { m/wrapper\sfor/ } <$pw>); + return grep { m/wrapper\sfor/ } <$pw>; } |