[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kioslave/nfs
From: Stephan Kulow <coolo () kde ! org>
Date: 2004-03-17 14:23:38
Message-ID: 20040317142338.444FC9936 () office ! kde ! org
[Download RAW message or body]
CVS commit by coolo:
does someone seriously want their URLs as nfs://nfs/%252fmycds/ ? I don't
M +9 -4 kio_nfs.cpp 1.31
--- kdebase/kioslave/nfs/kio_nfs.cpp #1.30:1.31
@@ -430,8 +430,13 @@ void NFSProtocol::openConnection()
NFSFileHandle fh;
fh=fhStatus.fhstatus_u.fhs_fhandle;
- m_handleCache.insert(QString("/")+KIO::encodeFileName(exportlist->ex_dir),fh);
- m_exportedDirs.append(KIO::encodeFileName(exportlist->ex_dir));
- //cerr<<"appending file \
-"<<KIO::encodeFileName(exportlist->ex_dir).latin1()<<"- with FH: \
-"<<fhStatus.fhstatus_u.fhs_fhandle<<"-"<<endl;
- };
+ QString fname;
+ if ( exportlist->ex_dir[0] == '/' )
+ fname = KIO::encodeFileName(exportlist->ex_dir + 1);
+ else
+ fname = KIO::encodeFileName(exportlist->ex_dir);
+ m_handleCache.insert(QString("/")+fname,fh);
+ m_exportedDirs.append(fname);
+ // kdDebug() <<"appending file -"<<fname<<"- with FH: \
-"<<fhStatus.fhstatus_u.fhs_fhandle<<"-"<<endl; + }
}
if (!atLeastOnceSucceeded)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic