[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 56924] no execute permissions on directory hides files instead
From: Stephan Kulow <coolo () kde ! org>
Date: 2003-08-31 19:14:57
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=56924
coolo@kde.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From coolo@kde.org 2003-08-31 21:14 -------
Subject: kdelibs/kioslave/file
CVS commit by coolo:
better error checking
CCMAIL: 56924-close@bugs.kde.org
M +8 -2 file.cc 1.140
--- kdelibs/kioslave/file/file.cc #1.139:1.140
@@ -995,5 +995,11 @@ void FileProtocol::listDir( const KURL&
char path_buffer[PATH_MAX];
getcwd(path_buffer, PATH_MAX - 1);
- chdir( _path.data() );
+ if ( chdir( _path.data() ) ) {
+ if (errno == EACCES)
+ error(ERR_ACCESS_DENIED, _path);
+ else
+ error(ERR_CANNOT_ENTER_DIRECTORY, _path);
+ finished();
+ }
UDSEntry entry;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic