Fix handling properties of large files

(cherry picked from commit efcd2f6e63)
v3.5.13-sru
Slávek Banko 12 years ago
parent 1bd417dea1
commit a08d2d7f1d

@ -57,6 +57,7 @@ include( ConfigureChecks.cmake )
add_definitions( add_definitions(
-DHAVE_CONFIG_H -DHAVE_CONFIG_H
-D_LARGEFILE64_SOURCE
) )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )

@ -32,6 +32,7 @@
#include <kapplication.h> #include <kapplication.h>
#include <kconfigdialog.h> #include <kconfigdialog.h>
#include <kdebug.h> #include <kdebug.h>
#include <kde_file.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <klocale.h> #include <klocale.h>
#include <kurl.h> #include <kurl.h>
@ -188,7 +189,7 @@ static void addAtom(UDSEntry& entry, unsigned int uds, const TQString& s)
} }
static void addAtom(UDSEntry& entry, unsigned int uds, long l) static void addAtom(UDSEntry& entry, unsigned int uds, long long l)
{ {
UDSAtom a; UDSAtom a;
a.m_uds = uds; a.m_uds = uds;
@ -204,8 +205,8 @@ static const UDSEntry pathToUDSEntry(const TQString& path, const TQString& displ
addAtom(entry, KIO::UDS_NAME, display); addAtom(entry, KIO::UDS_NAME, display);
if (!path.isEmpty()) { if (!path.isEmpty()) {
struct stat info; KDE_struct_stat info;
lstat(path.local8Bit(), &info); KDE_lstat(path.local8Bit(), &info);
addAtom(entry, KIO::UDS_SIZE, info.st_size); addAtom(entry, KIO::UDS_SIZE, info.st_size);
addAtom(entry, KIO::UDS_ACCESS, info.st_mode); addAtom(entry, KIO::UDS_ACCESS, info.st_mode);

Loading…
Cancel
Save