diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-03-26 22:04:09 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-03-26 22:04:09 +0000 |
commit | fcff5a0132d63b85e871b3fb06b418c16c00b403 (patch) | |
tree | ea05166f313ea27e74e258cfd75603f88c7f2f3b /usr.sbin/pkg_add/OpenBSD | |
parent | a97a3837acdb017ab0dd069b3a34f1c9042d1315 (diff) |
fix error message, based on a suggestion from doug@, ok espie
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index cf2a7cf6d5b..cf809121c8c 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.119 2016/03/18 11:33:40 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.120 2016/03/26 22:04:08 sthen Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -579,7 +579,7 @@ our %distant = (); sub drop_privileges_and_setup_env { - my $state = shift; + my $self = shift; my $user = '_pkgfetch'; # we can't cache anything, we happen after the fork, # right before exec @@ -589,7 +589,7 @@ sub drop_privileges_and_setup_env $< = $uid; $> = $uid; } else { - $state->fatal("Couldn't change identity: can't find #1", $user); + $self->{state}->fatal("Couldn't change identity: can't find #1 user", $user); } # create sanitized env for ftp |