Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Cross platform passwd functions #468

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

Cross platform passwd functions #468

isaacs opened this issue Jun 17, 2012 · 5 comments

Comments

@isaacs
Copy link

isaacs commented Jun 17, 2012

Regarding: nodejs/node-v0.x-archive#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
Copy link
Contributor

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
Copy link
Author

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.

@bnoordhuis
Copy link
Contributor

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
Copy link

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

@saghul
Copy link
Contributor

saghul commented Nov 26, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants