diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index e1e0955722..2ce2fa4e07 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -8554,6 +8554,9 @@ _user_open_dir_entry_ref(dev_t device, ino_t inode, const char* userName) int _user_open_dir(int fd, const char* userPath) { + if (userPath == NULL) + return dir_open(fd, NULL, false); + KPath path(B_PATH_NAME_LENGTH + 1); if (path.InitCheck() != B_OK) return B_NO_MEMORY;