Skip to content

Commit

Permalink
Don't chdir after realpath, but test for directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed May 20, 2024
1 parent 670a60c commit 32a5fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aaddressbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool AddressBar::internal(mstring line) {
arg.fmt("%s: %m", newdir.string());
return setText(arg, true), true;
}
else if (realdir.chdir()) {
else if ( !realdir.dirExists() || !realdir.isExecutable()) {
arg.fmt("%s: %m", realdir.string());
return setText(arg, true), true;
} else {
Expand Down

0 comments on commit 32a5fc4

Please sign in to comment.