<?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>106648</bug_id>
          
          <creation_ts>2005-06-02 02:06:20 +0000</creation_ts>
          <short_desc>3.4.1 fish know detects directories ending in &quot;.cc&quot; as c++ files instead of actually directories</short_desc>
          <delta_ts>2006-11-24 20:12:26 +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>fish</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Roback">joe.roback</reporter>
          <assigned_to name="Jörg Walter">trouble</assigned_to>
          <cc>filip</cc>
    
    <cc>hsyl20</cc>
    
    <cc>linuzonix</cc>
    
    <cc>nicolasg</cc>
    
    <cc>patrick</cc>
    
    <cc>rafal.przemyslaw.malinowski</cc>
    
    <cc>rgpublic</cc>
    
    <cc>smileaf</cc>
    
    <cc>stefano.fornari</cc>
    
    <cc>thomaslanquetin</cc>
    
    <cc>toralf.foerster</cc>
    
    <cc>wiedi</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>10</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>347062</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Roback">joe.roback</who>
    <bug_when>2005-06-02 02:06:20 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) 
OS:                Linux

I have a remote server with a directories that end in &quot;.cc&quot;, like roback.cc and developer.roback.cc, they are domain names. In &lt;=KDE3.4.0 fish worked fine, but in 3.4.1 fish detects them as C++ source files instead of directories.

http://www.roback.cc/tmp/fish_bug3.png is a screenshot of the bug in KDE3.4.1 with sftp displaying the directories correctly.

cheers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350052</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2005-06-13 17:20:55 +0000</bug_when>
    <thetext>*** Bug 107219 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353353</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2005-06-25 15:33:03 +0000</bug_when>
    <thetext>*** Bug 108105 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354271</commentid>
    <comment_count>3</comment_count>
    <who name="hads">hads</who>
    <bug_when>2005-06-29 07:15:04 +0000</bug_when>
    <thetext>Indeed this problem affects any directory with a name that is recognised as an known extension. A lot of the directories on my server end in .au and this opens as a Sun audio file. Seems only to affect the fish:/ slave.

Using Arch Linux with KDE 3.4.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354343</commentid>
    <comment_count>4</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2005-06-29 15:55:53 +0000</bug_when>
    <thetext>*** Bug 108272 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354407</commentid>
    <comment_count>5</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2005-06-29 21:24:07 +0000</bug_when>
    <thetext>After thinking more, I am reverting the status of duplication of bug #108272. 
The reason is that #106648 can be solved in another way by testing that the 
filenmae check should be careful about not finding an extension when its is 
the only file name.

However bug #1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354611</commentid>
    <comment_count>6</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-07-01 04:31:45 +0000</bug_when>
    <thetext>*** Bug 108272 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365024</commentid>
    <comment_count>7</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-08-13 05:02:50 +0000</bug_when>
    <thetext>*** Bug 110646 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365025</commentid>
    <comment_count>8</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-08-13 05:04:14 +0000</bug_when>
    <thetext>Confirming (3.5 r440440) and raising severity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372093</commentid>
    <comment_count>9</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2005-09-10 15:31:30 +0000</bug_when>
    <thetext>*** Bug 112347 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>391459</commentid>
    <comment_count>10</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2005-11-19 16:25:45 +0000</bug_when>
    <thetext>*** Bug 116707 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>394478</commentid>
    <comment_count>11</comment_count>
    <who name="T.R.Shashwath">trshash84</who>
    <bug_when>2005-12-01 14:07:59 +0000</bug_when>
    <thetext>Happens for me using fish on 3.4.2, compiled from Gentoo ebuilds. Specifically with directories called .qt and .java...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413610</commentid>
    <comment_count>12</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2006-02-12 21:04:49 +0000</bug_when>
    <thetext>*** Bug 121773 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>416333</commentid>
    <comment_count>13</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2006-02-22 10:40:24 +0000</bug_when>
    <thetext>See alo bug #122455 (I am not sure that it is exactly the same problem but it is a imilar symptom).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417413</commentid>
    <comment_count>14</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2006-02-25 21:18:56 +0000</bug_when>
    <thetext>*** Bug 122455 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>425565</commentid>
    <comment_count>15</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-03-28 16:47:04 +0000</bug_when>
    <thetext>*** Bug 124421 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458445</commentid>
    <comment_count>16</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-08-06 14:02:20 +0000</bug_when>
    <thetext>*** Bug 131953 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458457</commentid>
    <comment_count>17</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-08-06 15:14:12 +0000</bug_when>
    <thetext>SVN commit 570332 by kling:

If remote says it&apos;s a directory, go with that instead of guessing the mimetype based on filename.

BUG: 106648


 M  +12 -5     fish.cpp  


--- branches/KDE/3.5/kdebase/kioslave/fish/fish.cpp #570331:570332
@@ -962,18 +962,25 @@
                     errorCount--;
                     break;
 
-                case &apos;M&apos;:
+                case &apos;M&apos;: {
+                    QString type = line.mid(1);
+
+                    // First thing&apos;s first. If remote says this is a directory, throw out any
+                    // name-based file type guesses.
+                    if (type == &quot;inode/directory&quot; &amp;&amp; mimeAtom.m_str != type) {
+                        mimeAtom.m_str = type;
+                        typeAtom.m_long = S_IFDIR;
+                    }
                     // This is getting ugly. file(1) makes some uneducated
                     // guesses, so we must try to ignore them (#51274)
-                    if (mimeAtom.m_str.isEmpty() &amp;&amp; line.right(8) != &quot;/unknown&quot; &amp;&amp;
+                    else if (mimeAtom.m_str.isEmpty() &amp;&amp; line.right(8) != &quot;/unknown&quot; &amp;&amp;
                             (thisFn.find(&apos;.&apos;) &lt; 0 || (line.left(8) != &quot;Mtext/x-&quot;
                                                   &amp;&amp; line != &quot;Mtext/plain&quot;))) {
-                        mimeAtom.m_str = line.mid(1);
-                        if ( mimeAtom.m_str == &quot;inode/directory&quot; ) // a symlink to a dir is a dir
-                          typeAtom.m_long = S_IFDIR;
+                        mimeAtom.m_str = type;
                     }
                     errorCount--;
                     break;
+                }
 
                 case &apos;L&apos;:
                     atom.m_uds = UDS_LINK_DEST;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>489429</commentid>
    <comment_count>18</comment_count>
    <who name="Bram Schoenmakers">me</who>
    <bug_when>2006-11-24 20:12:26 +0000</bug_when>
    <thetext>*** Bug 137834 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>