Skip to content

Commit

Permalink
config: support default user on IBM i (#65)
Browse files Browse the repository at this point in the history
setuid() can not accept a 'nobody' parameter on IBM i.
The default user (QSECOFR) on IBM i has user id 0.

PR-URL: #65
Credit: @dmabupt
Reviewed-By: @zkat
  • Loading branch information
dmabupt authored and zkat committed Dec 10, 2018
1 parent ab0f026 commit 1065a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
process.getuid() !== 0,
'update-notifier': true,
usage: false,
user: process.platform === 'win32' ? 0 : 'nobody',
user: (process.platform === 'win32' || os.type() === 'OS400') ? 0 : 'nobody',
userconfig: path.resolve(home, '.npmrc'),
umask: process.umask ? process.umask() : umask.fromString('022'),
version: false,
Expand Down

0 comments on commit 1065a78

Please sign in to comment.