1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

FileManager: Report errors from chdir(), if any

This commit is contained in:
Andreas Kling 2021-08-26 23:40:58 +02:00
parent 83d3720842
commit 7b62113db7

View file

@ -390,7 +390,9 @@ bool DirectoryView::open(String const& path)
if (real_path.is_null() || !Core::File::is_directory(path))
return false;
chdir(real_path.characters());
if (chdir(real_path.characters()) < 0) {
perror("chdir");
}
if (model().root_path() == real_path) {
refresh();
} else {