projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add TCP_REPAIR_WINDOW to netinet/tcp.h from linux v4.8
[musl]
/
src
/
unistd
/
setxid.c
diff --git
a/src/unistd/setxid.c
b/src/unistd/setxid.c
index
9e37ddc
..
0239f8a
100644
(file)
--- a/
src/unistd/setxid.c
+++ b/
src/unistd/setxid.c
@@
-32,7
+32,7
@@
int __setxid(int nr, int id, int eid, int sid)
struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .err = -1 };
__synccall(do_setxid, &c);
if (c.err) {
- errno = c.err;
+
if (c.err>0)
errno = c.err;
return -1;
}
return 0;