1
Description: run libexec/fileshareset with kdesu rather than setuid
2
Run fileshareset with kdesu rather than rely on it to be setuid. filesharelist
3
should not need root permissions on standard debian install.
4
Author: Modestas Vainius <modax@debian.org>
7
Last-Update: 2010-05-31
10
--- a/kio/kio/kfileshare.cpp
11
+++ b/kio/kio/kfileshare.cpp
12
@@ -239,17 +239,19 @@ bool KFileShare::setShared( const QStrin
15
kDebug(7000) << path << "," << shared;
16
+ QString kdesu = ::findExe("kdesu");
17
QString exe = ::findExe( "fileshareset" );
19
+ if (kdesu.isEmpty() || exe.isEmpty())
23
+ args << "--" << exe;
29
- int ec = QProcess::execute( exe, args ); // should be ok, the perl script terminates fast
30
+ int ec = QProcess::execute( kdesu, args ); // should be ok, the perl script terminates fast
31
kDebug(7000) << "exitCode=" << ec;