Extend mount entry comparison fix (bnc#710269)
authorMichael Andres <ma@suse.de>
Mon, 29 Aug 2011 09:44:44 +0000 (11:44 +0200)
committerMichael Andres <ma@suse.de>
Mon, 29 Aug 2011 09:44:44 +0000 (11:44 +0200)
zypp/media/Mount.cc

index 7f8e37f..516af14 100644 (file)
@@ -329,8 +329,7 @@ Mount::getEntries(const std::string &mtab)
          // but looking for "Looking for media(cifs<//dist/install>)attached(*/var/adm/mount/AP_0x00000001)"
          // Kick the trailing '/' in "//dist/install/"
          // TODO: Check and fix comparison in MediaHandler::checkAttached instead.
-         if ( ( entry.type == "cifs" || entry.type == "smb" )
-              && entry.src.size() > 1  // not for "/"
+         if ( entry.src.size() > 1     // not for "/"
               && entry.src[entry.src.size()-1] == '/' )
          {
            entry.src.erase( entry.src.size()-1 );