From 4a24cda7a46c116267c811514e3a2f9ec901d21f Mon Sep 17 00:00:00 2001 From: Mert Can Altin Date: Mon, 12 Jan 2026 23:55:52 +0300 Subject: [PATCH] fs: remove duplicate getValidatedPath calls --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index cde3a582727f80..b53bd2f1d995b2 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1641,7 +1641,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); } /** @@ -1676,7 +1676,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,