projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf974d
)
Clean up a comparison warning.
author
Davin McCall
<davmac@davmac.org>
Tue, 20 Feb 2018 20:09:44 +0000
(20:09 +0000)
committer
Davin McCall
<davmac@davmac.org>
Tue, 20 Feb 2018 20:09:44 +0000
(20:09 +0000)
src/run-child-proc.cc
patch
|
blob
|
history
diff --git
a/src/run-child-proc.cc
b/src/run-child-proc.cc
index 61b42d27c2859062f9ddf32d2db7aba909f0375f..f08ee5b41b6be17e998374e88d3a0a22d5b87d8a 100644
(file)
--- a/
src/run-child-proc.cc
+++ b/
src/run-child-proc.cc
@@
-120,7
+120,7
@@
void service_record::run_child_proc(const char * const *args, const char *logfil
tcsetpgrp(0, getpgrp());
}
- if (uid !=
-1
) {
+ if (uid !=
uid_t(-1)
) {
if (setreuid(uid, uid) != 0) goto failure_out;
if (setregid(gid, gid) != 0) goto failure_out;
}