mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
The xmcd author released an updated version of xmcd-2.5 that
incorporated what was in patch-af. Removed patch-af and updated md5 to fix breakage caused by this release. Breakage reported by: jkh
This commit is contained in:
parent
1578b4da52
commit
50e17fcabc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20070
@ -1 +1 @@
|
||||
MD5 (xmcd-2.5.tar.gz) = de8d66770be5acc492e0c7c3ff03e0a0
|
||||
MD5 (xmcd-2.5.tar.gz) = 316dd535081bc714c0745217471cfd65
|
||||
|
@ -1,39 +0,0 @@
|
||||
--- xmcd_d/main.c.orig Sat Apr 24 03:41:00 1999
|
||||
+++ xmcd_d/main.c Sun May 23 11:55:01 1999
|
||||
@@ -151,6 +151,8 @@
|
||||
{
|
||||
int i;
|
||||
Display *display;
|
||||
+ uid_t euid, ruid;
|
||||
+ gid_t egid, rgid;
|
||||
|
||||
/* Error message stream */
|
||||
errfp = stderr;
|
||||
@@ -201,6 +203,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ /* get real IDs */
|
||||
+ ruid = getuid();
|
||||
+ rgid = getgid();
|
||||
+ /* save effective IDs */
|
||||
+ euid = geteuid();
|
||||
+ egid = getegid();
|
||||
+ /* give up root until we have a connection to the X server */
|
||||
+ (void)seteuid(ruid);
|
||||
+ (void)setegid(rgid);
|
||||
+
|
||||
/* Initialize X toolkit */
|
||||
widgets.toplevel = XtVaAppInitialize(
|
||||
&app_context,
|
||||
@@ -210,6 +222,10 @@
|
||||
NULL,
|
||||
NULL
|
||||
);
|
||||
+
|
||||
+ /* Ok, back to root */
|
||||
+ (void)seteuid(euid);
|
||||
+ (void)setegid(egid);
|
||||
|
||||
/* Get application options */
|
||||
XtVaGetApplicationResources(
|
Loading…
Reference in New Issue
Block a user