From 18ebc21bf1d29ed07fa007329879493493e18eb3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 14 Dec 2006 11:46:47 +0100 Subject: [PATCH] Really check for fd Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- lib-mx/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-mx/compress.c b/lib-mx/compress.c index 1684dd3..df6c761 100644 --- a/lib-mx/compress.c +++ b/lib-mx/compress.c @@ -200,7 +200,7 @@ int mutt_open_read_compressed(CONTEXT * ctx) /* If we cannot open tempfile, that means the file already exists (!?) * or we are following a symlink, which is bad and insecure. */ - if(!tmpfd) { + if(tmpfd < 0) { return -1; } close(tmpfd); -- 2.20.1