From fcff5a0132d63b85e871b3fb06b418c16c00b403 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Sat, 26 Mar 2016 22:04:09 +0000 Subject: fix error message, based on a suggestion from doug@, ok espie --- usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add') 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 # @@ -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 -- cgit v1.2.3