Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cross platform passwd functions #468

Closed
isaacs opened this Issue · 5 comments

4 participants

@isaacs

Regarding: joyent/node#2857

It'd be lovely if there was a way to call a uv_* version of the pwnam family of functions. See man 3 pwnam.

@bnoordhuis

Didn't we discuss that on IRC a while ago? The main issue I see is that password entries on Windows and Unices have few common fields.

@isaacs

We did discuss it on IRC, but IRC has a short memory.

The main issue I see is that password entries on Windows and Unices have few common fields.

What common fields are those?

We can probably just null out whatever Windows doesn't have, like we do with stat structs.

@bnoordhuis

What common fields are those?

pw_name, pw_uid, pw_dir and maybe pw_shell. @piscisaureus Agree?

We can probably just null out whatever Windows doesn't have, like we do with stat structs.

Yes, that's reasonable.

@sindresorhus

For anyone else needing this in the meantime, I've created a binding for getpwuid().

@saghul

Closing old stalled issues, please reopen at https://github.com/libuv/libuv if still needed.

@saghul saghul closed this
@sindresorhus sindresorhus referenced this issue in libuv/libuv
Open

Cross platform passwd functions #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.