Bug 179416

Summary: folders can't be unshared after being shared in dolphin
Product: [Unmaintained] kio Reporter: Nicolas L. <kde>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: faure
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas L. 2009-01-02 21:58:43 UTC
Version:            (using Devel)
Installed from:    Compiled sources

when you try to unshare a folder shared by dolphin you can't. The option checked is always "Not shared"

Looking debug it appears 

dolphin(13034)/kio KFileShare::readShareList: Shared dir: "/home/test/fileshare
/"


This patch fixes the issue. 

Index: kio/kio/kfileshare.cpp
===================================================================
--- kio/kio/kfileshare.cpp      (revision 903556)
+++ kio/kio/kfileshare.cpp      (working copy)
@@ -200,7 +200,7 @@

     // Reading code shamelessly stolen from khostname.cpp ;)
     while (!proc.atEnd()) {
-        QString line = proc.readLine();
+        QString line = proc.readLine().trimmed();
         int length = line.length();
        if ( length > 0 )
        {



Can i commit it ?
Comment 1 Nicolas L. 2009-01-05 20:48:11 UTC
SVN commit 906241 by nlecureuil:

Allow to unshare folders
BUG:179416


 M  +1 -1      kfileshare.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=906241