lib: Fix CID 1273073 Assign instead of compare
authorVolker Lendecke <vl@samba.org>
Tue, 3 Mar 2015 14:57:02 +0000 (15:57 +0100)
committerRalph Böhme <slow@samba.org>
Tue, 3 Mar 2015 16:34:39 +0000 (17:34 +0100)
This is a brown paper bag thingy, right?

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/close_low_fd.c

index b11d25f657eefbcad64a17d6c14b3307255bd53f..5e74918711374865a68f4a6f7d75ebf8a23f7494 100644 (file)
@@ -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
                 */