@zenfs/core 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/filesystem.d.ts +1 -1
- package/dist/vfs/promises.js +2 -1
- package/dist/vfs/sync.js +2 -1
- package/package.json +1 -1
package/dist/filesystem.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface FileSystemMetadata {
|
|
|
55
55
|
* These are used by the VFS for optimizations.
|
|
56
56
|
* - setid: The FS supports setuid and setgid when creating files and directories.
|
|
57
57
|
*/
|
|
58
|
-
features
|
|
58
|
+
features?: ('setid' | '')[];
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Options used when creating files and directories
|
package/dist/vfs/promises.js
CHANGED
|
@@ -467,7 +467,8 @@ unlink;
|
|
|
467
467
|
* Manually apply setuid/setgid.
|
|
468
468
|
*/
|
|
469
469
|
async function applySetId(file, uid, gid) {
|
|
470
|
-
|
|
470
|
+
var _a;
|
|
471
|
+
if ((_a = file.fs.metadata().features) === null || _a === void 0 ? void 0 : _a.includes('setid'))
|
|
471
472
|
return;
|
|
472
473
|
const parent = await file.fs.stat(dirname(file.path));
|
|
473
474
|
await file.chown(parent.mode & constants.S_ISUID ? parent.uid : uid, // manually apply setuid/setgid
|
package/dist/vfs/sync.js
CHANGED
|
@@ -169,7 +169,8 @@ unlinkSync;
|
|
|
169
169
|
* Manually apply setuid/setgid.
|
|
170
170
|
*/
|
|
171
171
|
function applySetId(file, uid, gid) {
|
|
172
|
-
|
|
172
|
+
var _a;
|
|
173
|
+
if ((_a = file.fs.metadata().features) === null || _a === void 0 ? void 0 : _a.includes('setid'))
|
|
173
174
|
return;
|
|
174
175
|
const parent = file.fs.statSync(dirname(file.path));
|
|
175
176
|
file.chownSync(parent.mode & constants.S_ISUID ? parent.uid : uid, // manually apply setuid/setgid
|