summaryrefslogtreecommitdiff
path: root/src/daemon.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
commit0b635145d3a16f4e6bb4182956917a320afc1bd7 (patch)
tree83a56b7225f564a1a6d3c3a12a7f4dab3505ceff /src/daemon.h
parentconfigure cleanup (diff)
fixed build with -Wall
added build support for clang git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@67 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/daemon.h')
-rw-r--r--src/daemon.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon.h b/src/daemon.h
index a910e4a..ebb7780 100644
--- a/src/daemon.h
+++ b/src/daemon.h
@@ -52,7 +52,7 @@ int priv_init(priv_info_t* priv, const char* username, const char* groupname)
priv->pw_ = getpwnam(username);
if(!priv->pw_) {
- log_printf(ERROR, "unkown user %s", username);
+ log_printf(ERROR, "unknown user %s", username);
return -1;
}
@@ -62,7 +62,7 @@ int priv_init(priv_info_t* priv, const char* username, const char* groupname)
priv->gr_ = getgrgid(priv->pw_->pw_gid);
if(!priv->gr_) {
- log_printf(ERROR, "unkown group %s", groupname);
+ log_printf(ERROR, "unknown group %s", groupname);
return -1;
}
@@ -114,6 +114,8 @@ int do_chroot(const char* chrootdir)
log_printf(ERROR, "can't change to /: %s", strerror(errno));
return -1;
}
+
+ return 0;
}
void daemonize()