]> git.pld-linux.org Git - packages/LPRng.git/commitdiff
- drop setgroups (patch from rawhide).
authorkloczek <kloczek@pld-linux.org>
Sat, 23 Jun 2001 13:48:36 +0000 (13:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    LPRng-setgroups.patch -> 1.1

LPRng-setgroups.patch [new file with mode: 0644]

diff --git a/LPRng-setgroups.patch b/LPRng-setgroups.patch
new file mode 100644 (file)
index 0000000..5541457
--- /dev/null
@@ -0,0 +1,24 @@
+--- LPRng-3.7.4/src/common/utilities.c.setgroups       Thu Jun  7 13:21:44 2001
++++ LPRng-3.7.4/src/common/utilities.c Thu Jun  7 13:26:48 2001
+@@ -16,6 +16,10 @@
+ #include "getopt.h"
+ #include "errorcodes.h"
++/* for setgroups */
++#define _BSD_SOURCE
++#include <grp.h>
++
+ /**** ENDINCLUDE ****/
+ /*
+@@ -1287,6 +1291,10 @@
+       if( UID_root ){
+               euid = geteuid();
+               To_root();      /* set RUID/EUID to root */
++
++              /* drop supplemental groups - crutcher@redhat.com */
++              setgroups(0, NULL);
++
+               status = setgid( DaemonGID );
+               err = errno;
+               if( To_uid( euid ) ){
This page took 0.198148 seconds and 4 git commands to generate.