summaryrefslogtreecommitdiff
path: root/src/tools/sss_userdel.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-05-17 17:36:38 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-20 22:37:25 +0200
commit7486dea9f5f7b2a6fbbacc6db740a82140b6377c (patch)
treea7f7cfc4f772860423e56d363ade1f6408f45f71 /src/tools/sss_userdel.c
parent574061e65d3fb687b9cb2c757afa1fe92812245e (diff)
downloadsssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.gz
sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.tar.bz2
sssd-7486dea9f5f7b2a6fbbacc6db740a82140b6377c.zip
Fixing critical format string issues.
--missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
Diffstat (limited to 'src/tools/sss_userdel.c')
-rw-r--r--src/tools/sss_userdel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/sss_userdel.c b/src/tools/sss_userdel.c
index ac87a736..d61a4571 100644
--- a/src/tools/sss_userdel.c
+++ b/src/tools/sss_userdel.c
@@ -96,8 +96,10 @@ static int kick_user(struct tools_ctx *tctx)
} else {
/* parent */
if (pid == -1) {
- DEBUG(1, ("fork failed [%d]: %s\n"));
- return errno;
+ ret = errno;
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("fork failed [%d]: %s\n", ret, strerror(ret)));
+ return ret;
}
while((child_pid = waitpid(pid, &status, 0)) > 0) {