Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

setuid and setgid accept string as a parameter. #469

Merged
merged 2 commits into from

2 participants

Anton Minyaylo Boris Yankov
Anton Minyaylo

Both process.setuid and process.setgid can accept either a numerical ID or a username\groupname string.

Anton Minyaylo AntonAM setuid and setgid accept string as a parameter.
Both process.setuid and process.setgid can accept either a numerical ID or a username\groupname string.
f9a66f3
Boris Yankov

Instead of replacing 'number' with 'any' we should add a 'string' version overload.

Anton Minyaylo AntonAM Added overloaded version of setgid and setuid.
Instead of making argument's type 'any' we have overloaded version for number and string parameters.
fd01ace
Anton Minyaylo

You're right, my bad.
Done.

Boris Yankov borisyankov merged commit 90f81c0 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. Anton Minyaylo

    setuid and setgid accept string as a parameter.

    AntonAM authored
    Both process.setuid and process.setgid can accept either a numerical ID or a username\groupname string.
Commits on Apr 10, 2013
  1. Anton Minyaylo

    Added overloaded version of setgid and setuid.

    AntonAM authored
    Instead of making argument's type 'any' we have overloaded version for number and string parameters.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  node/node.d.ts
2  node/node.d.ts
View
@@ -119,8 +119,10 @@ interface NodeProcess extends EventEmitter {
exit(code?: number): void;
getgid(): number;
setgid(id: number): void;
+ setgid(id: string): void;
getuid(): number;
setuid(id: number): void;
+ setuid(id: string): void;
version: string;
versions: { http_parser: string; node: string; v8: string; ares: string; uv: string; zlib: string; openssl: string; };
config: {
Something went wrong with that request. Please try again.