diff --git a/lib/fs.js b/lib/fs.js index 1c65c01c939..7189c4f461a 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1648,7 +1648,7 @@ function statfs(path, options = { bigint: false }, callback) { callback(err, getStatFsFromBinding(stats)); }; - binding.statfs(getValidatedPath(path), options.bigint, req); + binding.statfs(path, options.bigint, req); } /** @@ -1683,7 +1683,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) { throw new ERR_ACCESS_DENIED('Access to this API has been restricted', 'FileSystemRead', resource); } const stats = binding.lstat( - getValidatedPath(path), + path, options.bigint, undefined, options.throwIfNoEntry,