summaryrefslogtreecommitdiffstats
path: root/src/daemon.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-06-17 01:40:44 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-06-17 01:40:44 +0300
commit0635d9515edf67c110290705693c85ad968372fd (patch)
tree7f6b88328142ff9528b9cef46e9442e1bf9ba2b1 /src/daemon.c
parentb9be2a4396622b1621f340822921f5101529c9d0 (diff)
fix for format string signess
Diffstat (limited to 'src/daemon.c')
-rw-r--r--src/daemon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon.c b/src/daemon.c
index 05a77c7c67..33d3d0c1d8 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -93,29 +93,29 @@ int become_user(const char *username, int access_fd, int output_fd, int error_fd
}
if(setresgid(gid, gid, gid) != 0) {
- error("Cannot switch to user's %s group (gid: %d).", username, gid);
+ error("Cannot switch to user's %s group (gid: %u).", username, gid);
return -1;
}
if(setresuid(uid, uid, uid) != 0) {
- error("Cannot switch to user %s (uid: %d).", username, uid);
+ error("Cannot switch to user %s (uid: %u).", username, uid);
return -1;
}
if(setgid(gid) != 0) {
- error("Cannot switch to user's %s group (gid: %d).", username, gid);
+ error("Cannot switch to user's %s group (gid: %u).", username, gid);
return -1;
}
if(setegid(gid) != 0) {
- error("Cannot effectively switch to user's %s group (gid: %d).", username, gid);
+ error("Cannot effectively switch to user's %s group (gid: %u).", username, gid);
return -1;
}
if(setuid(uid) != 0) {
- error("Cannot switch to user %s (uid: %d).", username, uid);
+ error("Cannot switch to user %s (uid: %u).", username, uid);
return -1;
}
if(seteuid(uid) != 0) {
- error("Cannot effectively switch to user %s (uid: %d).", username, uid);
+ error("Cannot effectively switch to user %s (uid: %u).", username, uid);
return -1;
}