Bug 179416 - folders can't be unshared after being shared in dolphin
Summary: folders can't be unshared after being shared in dolphin
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-02 21:58 UTC by Nicolas L.
Modified: 2009-01-05 20:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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