SILENT KILLERPanel

Current Path: > > usr > lib > node_modules > npm > > node_modules > > gentle-fs > > lib


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.8
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib/node_modules/npm//node_modules//gentle-fs//lib

NameTypeSizeLast ModifiedActions
bin-link.js File 2601 bytes March 10 2021 14:36:39.
chown.js File 660 bytes March 10 2021 14:36:39.
link.js File 3614 bytes March 10 2021 14:36:39.
mkdir.js File 514 bytes March 10 2021 14:36:39.
rm.js File 7813 bytes March 10 2021 14:36:39.

Reading File: //usr/lib/node_modules/npm//node_modules//gentle-fs//lib/chown.js

'use strict'

// A module for chowning things we just created, to preserve
// ownership of new links and directories.

const chownr = require('chownr')

const selfOwner = {
  uid: process.getuid && process.getuid(),
  gid: process.getgid && process.getgid()
}

module.exports = (path, uid, gid, cb) => {
  if (selfOwner.uid !== 0 ||
      uid === undefined || gid === undefined ||
      (selfOwner.uid === uid && selfOwner.gid === gid)) {
    // don't need to, or can't chown anyway, so just leave it.
    // this also handles platforms where process.getuid is undefined
    return cb()
  }
  chownr(path, uid, gid, cb)
}

module.exports.selfOwner = selfOwner

SILENT KILLER Tool