summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-25 16:54:48 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-02 08:10:16 -0400
commit33aa72ea4d6b04549be0b47e8ec6ff9375621de8 (patch)
tree1ae0cd4becc1a98492ed78468a78e1359e4c0815
parentc6c4b5a848735dfad4a071c09c00184791409b3f (diff)
downloadsssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.tar.gz
sssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.tar.bz2
sssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.zip
SERVER: use the correct return code of sss_atomic_write_s
-rw-r--r--src/util/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 39cc1277..c59c193b 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -175,7 +175,7 @@ int pidfile(const char *path, const char *name)
errno = 0;
written = sss_atomic_write_s(fd, pid_str, size);
- if (ret == -1) {
+ if (written == -1) {
err = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
("write failed [%d][%s]\n", err, strerror(err)));