summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-20 09:30:58 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-20 09:30:58 +0000
commitbe6ad1d25f4709b3c5ec296f638519649c77c133 (patch)
tree0a8d209c6c0df43b08aab685961c2486dcfc6059 /usr.sbin
parente7a51fa22743515b54ce99c245b86cb8a4848cd1 (diff)
Don't bother setting the effective group, it doesn't affect file creation
on a BSD system anyhow (duh moment, thx semarie@)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository.pm5
1 files changed, 2 insertions, 3 deletions
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 <espie@openbsd.org>
#
@@ -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); });