Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling when the uid, gid doens't exist. #3

Closed
negletios opened this issue May 11, 2015 · 7 comments
Closed

Error handling when the uid, gid doens't exist. #3

negletios opened this issue May 11, 2015 · 7 comments

Comments

@negletios
Copy link

I need some kind of error handling in case the users / groups doesn't exist.

Right it throws : Segmentation fault.

It would be a nice to have 👍

@jandre
Copy link
Owner

jandre commented May 11, 2015

doh I thought I fixed this! I'll check it out.

@jandre
Copy link
Owner

jandre commented May 11, 2015

can you give me some test code to reproduce, and also tell me which platform you are seeing the error on?

Thanks!
Jen

@negletios
Copy link
Author

I am using it on Debian Jessie / 8.

The code is the same as your doc example. FYI I am using it inside a grunt task file. I don't know if that has anything to do :)

Just test it with a username / group that doesn't exist.

@streamich
Copy link

Crashes with "Segmentation fault" on Ubuntu 14.04 when running example in README, because group "wheel" does not exist.

@jandre
Copy link
Owner

jandre commented May 29, 2015

thanks all. What version of node so I can be sure to replicate?

@jandre jandre closed this as completed in 40dfda7 May 29, 2015
@jandre
Copy link
Owner

jandre commented May 29, 2015

0.1.3 should fix this; pushed to repo. Thanks!

@negletios
Copy link
Author

👍

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

No branches or pull requests

3 participants