Skip to content

Commit d93ab47

Browse files
committed
fs: validate statfs path
1 parent 7b7f693 commit d93ab47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/fs/promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ async function stat(path, options = { bigint: false }) {
10471047

10481048
async function statfs(path, options = { bigint: false }) {
10491049
const result = await PromisePrototypeThen(
1050-
binding.statfs(path, options.bigint, kUsePromises),
1050+
binding.statfs(getValidatedPath(path), options.bigint, kUsePromises),
10511051
undefined,
10521052
handleErrorFromBinding,
10531053
);

0 commit comments

Comments
 (0)