]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
fileAccess() already send an error message to the client as needed. Removed the extra...
authorPatrice Fournier <pfournier@ifax.com>
Fri, 14 Sep 2007 22:03:42 +0000 (22:03 +0000)
committerPatrice Fournier <pfournier@ifax.com>
Fri, 14 Sep 2007 22:03:42 +0000 (22:03 +0000)
hfaxd/Jobs.c++

index adec700fc493f498ea4b919469eaa9289bd0b689..843eec1e676e842f746890d83ab650cd2dbc80ab 100644 (file)
@@ -1558,12 +1558,12 @@ HylaFAXServer::checkAddDocument(Job& job, Token type,
 {
     if (checkParm(job, type, A_WRITE)) {
        struct stat sb;
-       if (!fileAccess(docname, R_OK, sb))
-           perror_reply(550, docname, errno);
-       else if (!docType(docname, op))
-           reply(550, "%s: Document type not recognized.", docname);
-       else
-           return (true);
+       if (fileAccess(docname, R_OK, sb)) {
+           if (!docType(docname, op))
+               reply(550, "%s: Document type not recognized.", docname);
+           else
+               return (true);
+       }
     }
     return (false);
 }