View | Details | Raw Unified | Return to bug 254178 | Differences between
and this patch

Collapse All | Expand All

(-)b/x11/xscreensaver/files/patch-driver_Makefile.in (+13 lines)
Lines 18-20 Link Here
18
 PAM_DIR		= $(PAM_ROOT)/pam.d
18
 PAM_DIR		= $(PAM_ROOT)/pam.d
19
 PAM_CONF	= $(PAM_ROOT)/pam.conf
19
 PAM_CONF	= $(PAM_ROOT)/pam.conf
20
 
20
 
21
@@ -106,10 +106,10 @@ DAEMON_LIBS	= $(LIBS_PRE) $(XINPUT_LIBS) -lX11 $(LIBS_
22
 
23
 GFX_DEFS	= -DLOCALEDIR=\"$(localedir)\"
24
 GFX_SRCS	= xscreensaver-gfx.c screens.c windows.c subprocs.c \
25
-		  exec.c prefsw.c dpms.c fade.c exts.c atomswm.c
26
+		  exec.c prefsw.c dpms.c fade.c exts.c atomswm.c setuid.c
27
 GFX_OBJS	= xscreensaver-gfx.o screens.o windows.o subprocs.o \
28
 		  exec.o prefsw.o dpms.o fade.o exts.o atomswm.o \
29
-		  prefs.o blurb.o atoms.o clientmsg.o xinput.o \
30
+		  prefs.o blurb.o atoms.o clientmsg.o xinput.o setuid.o \
31
 		  $(UTILS_BIN)/xmu.o \
32
 		  $(UTILS_BIN)/yarandom.o \
33
 		  $(UTILS_BIN)/resources.o \
(-)b/x11/xscreensaver/files/patch-driver_xscreensaver-gfx.c (-1 / +20 lines)
Added Link Here
0
- 
1
--- driver/xscreensaver-gfx.c.orig	2021-09-21 12:25:20 UTC
2
+++ driver/xscreensaver-gfx.c
3
@@ -57,6 +57,8 @@
4
 #include "clientmsg.h"
5
 #include "xmu.h"
6
 
7
+extern void disavow_privileges (void);
8
+
9
 saver_info *global_si_kludge = 0;	/* I hate C so much... */
10
 
11
 char *progclass = 0;
12
@@ -559,6 +561,8 @@ main (int argc, char **argv)
13
           goto HELP;
14
         }
15
     }
16
+
17
+  disavow_privileges ();
18
 
19
   /* Copy the -dpy arg to $DISPLAY for subprocesses. */
20
   s = (char *) malloc (strlen(dpy_str) + 20);

Return to bug 254178