Cross platform passwd functions #468

Closed
isaacs opened this Issue Jun 17, 2012 · 5 comments

Comments

Projects
None yet
4 participants
Member

isaacs commented Jun 17, 2012

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.

Contributor

bnoordhuis commented Jun 28, 2012

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.

Member

isaacs commented Jun 28, 2012

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.

Contributor

bnoordhuis commented Jul 3, 2012

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.

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

Contributor

saghul commented Nov 26, 2014

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

@saghul saghul closed this Nov 26, 2014

@sindresorhus sindresorhus referenced this issue in libuv/libuv Nov 26, 2014

Closed

Cross platform passwd functions #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment