diff --git a/src/system/dev/vfs.c b/src/system/dev/vfs.c index c6d0d750b..6f090f6c0 100644 --- a/src/system/dev/vfs.c +++ b/src/system/dev/vfs.c @@ -109,10 +109,9 @@ int _open(const char* file, int flags, int mode) { return usd_open_r(r, file + strlen("/usd"), flags, mode); } else if (strstr(file, "/dev") == file) { return dev_open_r(r, file + strlen("/dev"), flags, mode); + } else { + return usd_open_r(r, file, flags, mode); } - - r->_errno = ENOENT; - return -1; } ssize_t _write(int file, const void* buf, size_t len) {