diff --git a/src/kernel/core/fs/vfs.cpp b/src/kernel/core/fs/vfs.cpp index 603537a17e..f917301da9 100755 --- a/src/kernel/core/fs/vfs.cpp +++ b/src/kernel/core/fs/vfs.cpp @@ -5457,7 +5457,7 @@ _user_open(int fd, const char *userPath, int openMode) if (status < 0) return status; - return file_open(-1, path, openMode, false); + return file_open(fd, path, openMode, false); }