summaryrefslogtreecommitdiff
path: root/sysutils/mtools/patches
diff options
context:
space:
mode:
authoradam <adam>2003-12-11 17:14:22 +0000
committeradam <adam>2003-12-11 17:14:22 +0000
commitb2e12a4a68b85032239d43de5023428367c96f9d (patch)
tree4e5fe3641fb11687fe195125850117c32fe8c86e /sysutils/mtools/patches
parentff33cbd6305b53f2f0d0e3a423e217840b042cf3 (diff)
downloadpkgsrc-b2e12a4a68b85032239d43de5023428367c96f9d.tar.gz
Fix from PR/18771: mtools privileges
Diffstat (limited to 'sysutils/mtools/patches')
-rw-r--r--sysutils/mtools/patches/patch-ae22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/mtools/patches/patch-ae b/sysutils/mtools/patches/patch-ae
new file mode 100644
index 00000000000..7b70b0a5fdf
--- /dev/null
+++ b/sysutils/mtools/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.3 2003/12/11 17:14:22 adam Exp $
+
+--- privileges.c.orig 2003-12-11 18:07:44.000000000 +0000
++++ privileges.c
+@@ -68,7 +68,7 @@ void reclaim_privs(void)
+ {
+ if(noPrivileges)
+ return;
+- setgid(egid);
++ setegid(egid);
+ Setuid(euid);
+ print_privs("after reclaim privs, both uids should be 0 ");
+ }
+@@ -76,7 +76,7 @@ void reclaim_privs(void)
+ void drop_privs(void)
+ {
+ Setuid(ruid);
+- setgid(rgid);
++ setegid(rgid);
+ print_privs("after drop_privs, real should be 0, effective should not ");
+ }
+