Hello together,

pkg_add is broken on my current amd64 since snapshot march 24.

I get this:

# pkg_add -ui
Error from http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/
Can't locate object method "fatal" via package
"OpenBSD::PackageRepository::HTTP" at
/usr/libdata/perl5/OpenBSD/PackageRepository.pm line 592.


The corresponding code:

-- snip ---
sub drop_privileges_and_setup_env
{
        my $state = shift;
        my $user = '_pkgfetch';
        # we can't cache anything, we happen after the fork,.
        # right before exec
        if (my (undef, undef, $uid, $gid) = getpwnam($user)) {
                $( = $gid;
                $) = "$gid $gid";
                $< = $uid;
                $> = $uid;
        } else {
          $state->fatal("Couldn't change identity: can't find #1", $user);
        }
--- snip --

When I remark the "fatal" in line 592, I can update. But how can I fix
it correctly?


I did not find any change notes in: http://www.openbsd.org/faq/current.html

Thank you in advance for your feedback.

/Heiko

Reply via email to