From: Frank Lahm Date: Wed, 15 Sep 2010 08:24:26 +0000 (+0200) Subject: Comparison in error check was wrong X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=32375bb708a81d228df19222a68f1db5b5ecdec4 Comparison in error check was wrong --- diff --git a/etc/afpd/messages.c b/etc/afpd/messages.c index 28128862..13e03f40 100644 --- a/etc/afpd/messages.c +++ b/etc/afpd/messages.c @@ -89,7 +89,7 @@ void readmessage(AFPObj *obj) strerror(errno)); } - if ( 0 < (rc = unlink(filename)) ) + if ((rc = unlink(filename)) != 0) LOG(log_error, logtype_afpd, "File '%s' could not be deleted", strerror(errno)); /* Drop privs again, failing this is very bad */