diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-02 16:32:40 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-02 16:32:42 +0200 |
commit | 5a3b8f9fce960704f347db338dda5746738dd6d0 (patch) | |
tree | 7fd1c1caf14dbc3b2a221eec1c434769ac92ca28 /test/test-tcp-connect-error-after-write.c | |
parent | d0be852cb17fee8e3da232dc56d4b465b7792714 (diff) | |
download | libuv-5a3b8f9fce960704f347db338dda5746738dd6d0.tar.gz libuv-5a3b8f9fce960704f347db338dda5746738dd6d0.zip |
test: fix spawn_setgid_fails and spawn_setuid_fails
Don't try to set a bogus UID or GID and expect to get a meaningful
error. The test expected EPERM but SunOS returns EINVAL because the
id is outside of the range of valid user/group ids.
Try to switch to UID/GID 0. Give up privileges first if we're root,
else the setuid/setgid system call will succeed when it's expected
to fail.
Diffstat (limited to 'test/test-tcp-connect-error-after-write.c')
0 files changed, 0 insertions, 0 deletions