diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-04-25 16:54:48 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-02 08:10:16 -0400 |
commit | 33aa72ea4d6b04549be0b47e8ec6ff9375621de8 (patch) | |
tree | 1ae0cd4becc1a98492ed78468a78e1359e4c0815 /src/util | |
parent | c6c4b5a848735dfad4a071c09c00184791409b3f (diff) | |
download | sssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.tar.gz sssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.tar.xz sssd-33aa72ea4d6b04549be0b47e8ec6ff9375621de8.zip |
SERVER: use the correct return code of sss_atomic_write_s
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c index 39cc12776..c59c193bb 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))); |