From: Julien Danjou Date: Thu, 14 Dec 2006 10:46:47 +0000 (+0100) Subject: Really check for fd X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=18ebc21bf1d29ed07fa007329879493493e18eb3;ds=sidebyside Really check for fd Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- 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);