Skip to content

Instantly share code, notes, and snippets.

@Valid
Created May 27, 2010 15:22
Show Gist options
  • Save Valid/415930 to your computer and use it in GitHub Desktop.
Save Valid/415930 to your computer and use it in GitHub Desktop.
if ($2.indexOf(':') !== -1) {
gpuid = split($2, ':');
fs.getpwuid($2[0], function (err, resp) {
// handle err
fs.getgrgid($2[1], function (err, resp) {
// checking and stuff
});
})
} else {
fs.getpwuid($2, function (err, resp) {
// stuff
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment