Skip to content

Commit

Permalink
Fix $HOME/.pioneer randomly created on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
impaktor authored and Webster Sheets committed Nov 1, 2024
1 parent 4c57fb9 commit 7228502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/posix/FileSystemPosix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ namespace FileSystem {
path += "Library/Application Support/Pioneer";
#else
struct stat info;
stat((path + ".pioneer").c_str(), &info);
if (S_ISDIR(info.st_mode)) {
int err = stat((path + ".pioneer").c_str(), &info);
if (err == 0 && S_ISDIR(info.st_mode)) {
// Check for legacy pioneer directory.
path += ".pioneer";
} else {
Expand Down

0 comments on commit 7228502

Please sign in to comment.