fs: uids and gids must be unsigned ints
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 23 Jul 2013 11:28:14 +0000 (13:28 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 23 Jul 2013 11:36:46 +0000 (13:36 +0200)
commited806385bfd6d7d0e7e31b49586a78dd33d82d37
tree68f7e1058a506833f77c418c11674f4fae153e24
parent14f45ba739ac660fd437df9fc4a10415fa35d9a4
fs: uids and gids must be unsigned ints

Before this commit, fs.chown() and fs.fchown() coerced the uid and gid
arguments to signed integers which is wrong because uid_t and gid_t are
unsigned on most all platforms and IDs that don't fit in a signed
integer do exist.

This commit changes the aforementioned functions to take unsigned ints
instead.  No test because we can't assume the system has [GU]IDs that
large.

This change depends on joyent/libuv@d779eb5.

Fixes #5890.
src/node_file.cc