test: fix file path in permission symlink test

PR-URL: https://github.com/nodejs/node/pull/46859
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Livia Medeiros
2023-03-01 21:11:39 +09:00
committed by GitHub
parent b509e015ef
commit 4a7c3e9c50

View File

@@ -53,9 +53,7 @@ fs.writeFileSync(path.join(readWriteFolder, 'file'), 'NO evil file contents');
}));
// App will be able to write to the symlink
fs.writeFile('file', 'some content', (err) => {
assert.ifError(err);
});
fs.writeFile(path.join(writeOnlyFolder, 'link-to-read-write'), 'some content', common.mustSucceed());
});
// App won't be able to symlink to a readOnlyFolder