From: espie Date: Sat, 20 May 2023 09:30:57 +0000 (+0000) Subject: Don't bother setting the effective group, it doesn't affect file creation X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cf08ccf990babb897cc69cfe3a81d07fa81106f1;p=openbsd Don't bother setting the effective group, it doesn't affect file creation on a BSD system anyhow (duh moment, thx semarie@) --- diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index 78104765f12..a43ac6df4e4 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.173 2023/05/17 15:51:58 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.174 2023/05/20 09:30:57 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -1009,11 +1009,10 @@ sub setup_session require OpenBSD::Temp; $self->{count} = 0; - local ($>, $)); + local $>; my ($uid, $gid, $user) = $self->fetch_id; if (defined $uid) { $> = $uid; - $) = "$gid $gid"; } my ($fh, undef) = OpenBSD::Temp::fh_file("session", sub { unlink(shift); });