From de1bf29d250849ebea1a3badd3e881035c1897b0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 3 Mar 2015 15:57:02 +0100 Subject: [PATCH] lib: Fix CID 1273073 Assign instead of compare This is a brown paper bag thingy, right? Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- lib/util/close_low_fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/close_low_fd.c b/lib/util/close_low_fd.c index b11d25f657e..5e749187113 100644 --- a/lib/util/close_low_fd.c +++ b/lib/util/close_low_fd.c @@ -28,7 +28,7 @@ _PUBLIC_ int close_low_fd(int fd) dev_null = open("/dev/null", O_RDWR, 0); - if ((dev_null == -1) && (errno = ENFILE)) { + if ((dev_null == -1) && (errno == ENFILE)) { /* * Try to free up an fd */ -- 2.11.4.GIT