diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2019-07-04 14:53:28 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2019-07-04 14:53:28 +0000 |
commit | b0d2593f60af4976bbdd5aa459b8e1480b8c692b (patch) | |
tree | 72c936ae659aca8415daf5eea5a5524b22650996 /usr.sbin/pkg_add | |
parent | 43cb709c6af001adcf3434b189c8d8e832e1f09a (diff) |
unhardcode error message, suggested by otto@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageLocation.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm index 1b8d9919de7..d16327d7381 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageLocation.pm,v 1.51 2017/03/07 14:15:09 espie Exp $ +# $OpenBSD: PackageLocation.pm,v 1.52 2019/07/04 14:53:27 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -157,7 +157,8 @@ sub grab_info } if (! -f $dir.CONTENTS) { - open my $fh, '>', $dir.CONTENTS or die "Permission denied"; + open my $fh, '>', $dir.CONTENTS or + die "write to ",$dir.CONTENTS, ": ", $!; print $fh $self->contents; close $fh; } |