[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/sysadmin/kiosktool
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-03-10 13:23:19
Message-ID: 1268227399.552945.29586.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1101650 by lunakl:

installed global files need to be readable by all, otherwise
kiosktool run as user can't read them again, and generally this
is system-wide settings, so users actually need to be able to read them



 M  +5 -2      kioskrun.cpp  


--- trunk/extragear/sysadmin/kiosktool/kioskrun.cpp #1101649:1101650
@@ -962,8 +962,11 @@
     KIO::CopyJob *result = KIO::copy(src, dest, KIO::Overwrite|KIO::HideProgressInfo );
     if (result->exec() == true)
     {
-	::unlink(QFile::encodeName(file));
-	return true;
+        if(KIO::chmod(dest, 0644)->exec())
+        {
+	    ::unlink(QFile::encodeName(file));
+	    return true;
+	}
     }
 
    return false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic