summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Ustar.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
index 1a5db7210b2..8f8617db5a3 100644
--- a/usr.sbin/pkg_add/OpenBSD/Ustar.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Ustar.pm,v 1.56 2010/05/10 09:17:55 espie Exp $
+# $OpenBSD: Ustar.pm,v 1.57 2010/06/30 10:10:17 espie Exp $
#
# Copyright (c) 2002-2007 Marc Espie <espie@openbsd.org>
#
@@ -569,10 +569,7 @@ use constant {
sub new
{
my ($class, $fname) = @_;
- open (my $out, '>', $fname);
- if (!defined $out) {
- return;
- }
+ open (my $out, '>', $fname) or return;
my $bs = (stat $out)[11];
my $zeroes;
if (defined $bs) {