Fix handling path with UTF8 characters in tdehw storage backend

pull/16/head
Slávek Banko 11 years ago
parent 337146de44
commit 24b097d1d5

@ -777,7 +777,7 @@ TQString TDEStorageDevice::determineFileSystemType(TQString path) {
int pos;
struct stat directory_info;
if (path.startsWith("/")) {
stat(path.ascii(), &directory_info);
stat(path.local8Bit(), &directory_info);
prevDev = directory_info.st_dev;
// Walk the directory tree up to the root, checking for any change in st_dev
// If a change is found, the previous value of path is the mount point itself
@ -790,7 +790,7 @@ TQString TDEStorageDevice::determineFileSystemType(TQString path) {
if (path == "") {
path = "/";
}
stat(path.ascii(), &directory_info);
stat(path.local8Bit(), &directory_info);
if (directory_info.st_dev != prevDev) {
break;
}

Loading…
Cancel
Save