From: espie Date: Mon, 20 Apr 2015 13:10:54 +0000 (+0000) Subject: totally forgot about the !uid notation in newuser when adding the early X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=506e4433e4f80c14b9c997148bbdfe80c4a63c91;p=openbsd totally forgot about the !uid notation in newuser when adding the early cache for pkg_create. Reminded by sthen@ --- diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 37008e14b20..e6373833450 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.241 2015/04/16 13:29:16 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.242 2015/04/20 13:10:54 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -1145,7 +1145,9 @@ sub new sub destate { my ($self, $state) = @_; - $state->{owners}{$self->{name}} = $self->{uid}; + my $uid = $self->{uid}; + $uid =~ s/^\!//; + $state->{owners}{$self->{name}} = $uid; } sub check @@ -1206,7 +1208,9 @@ sub new sub destate { my ($self, $state) = @_; - $state->{groups}{$self->{name}} = $self->{gid}; + my $gid = $self->{gid}; + $gid =~ s/^\!//; + $state->{groups}{$self->{name}} = $gid; } sub check