diff --git a/src/tools/fs_shell/stat.cpp b/src/tools/fs_shell/stat.cpp index a7c3202484..af2c63f55a 100644 --- a/src/tools/fs_shell/stat.cpp +++ b/src/tools/fs_shell/stat.cpp @@ -36,7 +36,7 @@ FSShell::unrestricted_stat(const char *path, struct fssh_stat *fsshStat) // Use the _kern_read_stat() defined in libroot on BeOS incompatible // systems. Required for support for opening symlinks. #if __BEOS__ - if (stat(path, &st) < 0) + if (::stat(path, &st) < 0) return -1; #else status_t error = _kern_read_stat(-1, path, true, &st, sizeof(st));