Fix login.

This commit is contained in:
Enrico Fraccaroli
2021-12-17 00:49:17 +01:00
parent a0dbeb1527
commit 11f485cf77
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1488,7 +1488,7 @@ static vfs_file_t *ext2_open(const char *path, int flags, mode_t mode)
}
ext2_dirent_t direntry;
memset(&direntry, 0, sizeof(ext2_dirent_t));
if (ext2_resolve_path(sb_root, absolute_path, &direntry)) {
if (ext2_resolve_path(sb_root, absolute_path, &direntry) == -1) {
pr_err("ext2_open(%s): Failed to find path `%s`.\n", path, absolute_path);
return NULL;
}