[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/libX11/devel libX11-1.0.1-setuid.diff,NONE,1.1



Author: mharris

Update of /cvs/dist/rpms/libX11/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv18512

Added Files:
	libX11-1.0.1-setuid.diff 
Log Message:
Ok, 2 packages in a row, commit spec changes, forget to cvs add patch.  How dumb is that.

libX11-1.0.1-setuid.diff:
 lcFile.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

--- NEW FILE libX11-1.0.1-setuid.diff ---
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
index f8b3404..bb1ee20 100644
--- a/src/xlibi18n/lcFile.c
+++ b/src/xlibi18n/lcFile.c
@@ -269,7 +269,11 @@ #else
 	    if (seteuid(0) != 0) {
 		priv = 0;
 	    } else {
-		seteuid(oldeuid);
+		if (seteuid(oldeuid) == -1) {
+		    /* XXX ouch, coudn't get back to original uid 
+		     what can we do ??? */
+		    _exit(127);
+		}
 		priv = 1;
 	    }
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]