@zenfs/core 1.3.5 → 1.3.6

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/stats.js CHANGED
@@ -109,10 +109,8 @@ export class StatsCommon {
109
109
  * @internal
110
110
  */
111
111
  hasAccess(mode) {
112
- if (credentials.euid === 0 || credentials.egid === 0) {
113
- // Running as root
112
+ if (this.isSymbolicLink() || credentials.euid === 0 || credentials.egid === 0)
114
113
  return true;
115
- }
116
114
  let perm = 0;
117
115
  // Owner permissions
118
116
  if (credentials.uid === this.uid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",
package/src/stats.ts CHANGED
@@ -247,10 +247,7 @@ export abstract class StatsCommon<T extends number | bigint> implements Node.Sta
247
247
  * @internal
248
248
  */
249
249
  public hasAccess(mode: number): boolean {
250
- if (credentials.euid === 0 || credentials.egid === 0) {
251
- // Running as root
252
- return true;
253
- }
250
+ if (this.isSymbolicLink() || credentials.euid === 0 || credentials.egid === 0) return true;
254
251
 
255
252
  let perm = 0;
256
253