diff options
Diffstat (limited to 'Userland/Utilities/mount.cpp')
-rw-r--r-- | Userland/Utilities/mount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp index adbaa9ef65..e579a795a5 100644 --- a/Userland/Utilities/mount.cpp +++ b/Userland/Utilities/mount.cpp @@ -129,8 +129,8 @@ static ErrorOr<void> mount_all() auto fstab_directory_iterator = Core::DirIterator("/etc/fstab.d", Core::DirIterator::SkipDots); - if (fstab_directory_iterator.has_error() && fstab_directory_iterator.error() != ENOENT) { - dbgln("Failed to open /etc/fstab.d: {}", fstab_directory_iterator.error_string()); + if (fstab_directory_iterator.has_error() && fstab_directory_iterator.error().code() != ENOENT) { + dbgln("Failed to open /etc/fstab.d: {}", fstab_directory_iterator.error()); } else if (!fstab_directory_iterator.has_error()) { while (fstab_directory_iterator.has_next()) { auto path = fstab_directory_iterator.next_full_path(); |