Skip to content

Commit

Permalink
Merge branch 'omp-jb47640' into 'master'
Browse files Browse the repository at this point in the history
[filemanager] Replace stat method width stat64 for StatFileInfo class. Fixed JB#47640

See merge request mer-core/nemo-qml-plugin-filemanager!29
  • Loading branch information
rainemak committed Apr 27, 2020
2 parents 7f97543 + b3af34c commit 24b8a2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plugin/statfileinfo.cpp
Expand Up @@ -109,7 +109,7 @@ void StatFileInfo::refresh()
char *fn = ba.data();

// check the file without following symlinks
int res = lstat(fn, &m_lstat);
int res = lstat64(fn, &m_lstat);
if (res != 0) { // if error, then set to undefined
m_lstat.st_mode = 0;
}
Expand All @@ -120,7 +120,7 @@ void StatFileInfo::refresh()
}

// check the file after following possible symlinks
res = stat(fn, &m_stat);
res = stat64(fn, &m_stat);
if (res != 0) { // if error, then set to undefined
m_stat.st_mode = 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/statfileinfo.h
Expand Up @@ -129,8 +129,8 @@ class StatFileInfo
QString m_fileName;
QFileInfo m_fileInfo;
Sailfish::ArchiveInfo m_archiveInfo;
struct stat m_stat; // after following possible symlinks
struct stat m_lstat; // file itself without following symlinks
struct stat64 m_stat; // after following possible symlinks
struct stat64 m_lstat; // file itself without following symlinks
bool m_selected;
};

Expand Down

0 comments on commit 24b8a2a

Please sign in to comment.