<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>179416</bug_id>
          
          <creation_ts>2009-01-02 21:58:43 +0000</creation_ts>
          <short_desc>folders can&apos;t be unshared after being shared in dolphin</short_desc>
          <delta_ts>2009-01-05 20:48:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Mandriva RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicolas L.">kde</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>faure</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>692813</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas L.">kde</who>
    <bug_when>2009-01-02 21:58:43 +0000</bug_when>
    <thetext>Version:            (using Devel)
Installed from:    Compiled sources

when you try to unshare a folder shared by dolphin you can&apos;t. The option checked is always &quot;Not shared&quot;

Looking debug it appears 

dolphin(13034)/kio KFileShare::readShareList: Shared dir: &quot;/home/test/fileshare
/&quot;


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 &gt; 0 )
        {



Can i commit it ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>694632</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas L.">kde</who>
    <bug_when>2009-01-05 20:48:11 +0000</bug_when>
    <thetext>SVN commit 906241 by nlecureuil:

Allow to unshare folders
BUG:179416


 M  +1 -1      kfileshare.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=906241
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>