SOURCES: vixie-cron-saved-uids.patch (NEW) - fixed swap_uids_back ...

hawk hawk at pld-linux.org
Mon Sep 12 12:45:29 CEST 2005


Author: hawk                         Date: Mon Sep 12 10:45:29 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed swap_uids_back to restore uid/gid properly

---- Files affected:
SOURCES:
   vixie-cron-saved-uids.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/vixie-cron-saved-uids.patch
diff -u /dev/null SOURCES/vixie-cron-saved-uids.patch:1.1
--- /dev/null	Mon Sep 12 12:45:29 2005
+++ SOURCES/vixie-cron-saved-uids.patch	Mon Sep 12 12:45:24 2005
@@ -0,0 +1,12 @@
+diff -ur vixie.orig/misc.c vixie/misc.c
+--- vixie.orig/misc.c	2005-09-12 11:09:55.000000000 +0200
++++ vixie/misc.c	2005-09-12 12:01:51.270399680 +0200
+@@ -680,7 +680,7 @@
+ }
+ 
+ int swap_uids_back(void) {
+-	return ((setegid(getgid()) || seteuid(getuid())) ? -1 : 0);
++	return ((setegid(save_egid) || seteuid(save_euid)) ? -1 : 0);
+ }
+ 
+ #else /*HAVE_SAVED_UIDS*/
================================================================



More information about the pld-cvs-commit mailing list