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

rpms/kdelibs/F-7 kdelibs-3.5.7-ICEauthority.patch, NONE, 1.1 kdelibs.spec, 1.210, 1.211



Author: than

Update of /cvs/extras/rpms/kdelibs/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3106

Modified Files:
	kdelibs.spec 
Added Files:
	kdelibs-3.5.7-ICEauthority.patch 
Log Message:
- don't change permission .ICEauthority by sudo KDE programs.


kdelibs-3.5.7-ICEauthority.patch:

--- NEW FILE kdelibs-3.5.7-ICEauthority.patch ---
--- kdelibs-3.5.7/kdecore/kapplication.cpp.orig	2007-05-20 22:04:53.000000000 +0200
+++ kdelibs-3.5.7/kdecore/kapplication.cpp	2007-05-20 22:38:53.000000000 +0200
@@ -774,6 +774,12 @@
 
 void KApplication::init(bool GUIenabled)
 {
+  if (getuid() == 0) { 
+    setenv("ICEAUTHORITY", "/root/.ICEauthority", 0); 
+    setenv("KDEROOTHOME", "/root/.kde", 0); 
+    setenv("HOME", "/root", 1); 
+  } 
+
   d->guiEnabled = GUIenabled;
   if ((getuid() != geteuid()) ||
       (getgid() != getegid()))


Index: kdelibs.spec
===================================================================
RCS file: /cvs/extras/rpms/kdelibs/F-7/kdelibs.spec,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -r1.210 -r1.211
--- kdelibs.spec	17 May 2007 15:19:44 -0000	1.210
+++ kdelibs.spec	23 May 2007 22:29:14 -0000	1.211
@@ -22,9 +22,9 @@
 
 Name:    kdelibs
 Summary: K Desktop Environment - Libraries
-Epoch:	 6
+Epoch:   6
 Version: 3.5.6
-Release: 9%{?dist}
+Release: 10%{?dist}
 
 License: LGPL
 Url: http://www.kde.org/
@@ -50,6 +50,7 @@
 Patch39: kdelibs-3.5.4-kabc-make.patch
 Patch40: kdelibs-3.5.4-kdeprint-utf8.patch
 Patch41: kdelibs-3.5.6-utempter.patch
+Patch42: kdelibs-3.5.7-ICEauthority.patch
 
 # use /etc/kde in addition to /usr/share/config, borrowed from debian
 Patch104: kdelibs-3.5.5-kstandarddirs.patch
@@ -189,6 +190,7 @@
 %patch39 -p1 -b .kabc-make
 %patch40 -p1 -b .kdeprint-utf8
 %patch41 -p1 -b .utempter
+%patch42 -p1 -b .ICEauthority
 
 %patch104 -p1 -b .kstandarddirs
 
@@ -459,6 +461,9 @@
 
 
 %changelog
+* Thu May 24 2007 Than Ngo <than redhat com> 3.5.6-10.fc7
+- don't change permission .ICEauthority by sudo KDE programs
+
 * Thu May 16 2007 Rex Dieter <rdieter[AT]fedorproject.org> - 6:3.5.6-9
 - make qtdocdir handling robust
 - kde_settings=1


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