Browse code

update manual page and fix return code for "unknown option" error

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1044 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/10/29 09:23:18
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Fri Oct 29 02:19:48 CEST 2004 (tk)
2
+----------------------------------
3
+  * clamdscan: update manual page and fix return code for "unknown option"
4
+	       error
5
+
1 6
 Thu Oct 28 09:14:22 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/strrcpy.c:	Ensure that assert is only used if
... ...
@@ -143,7 +143,10 @@ int main(int argc, char **argv)
143 143
 		} else {
144 144
 		    mprintf("!Unknown option passed.\n");
145 145
 		    free_opt(opt);
146
-		    exit(40);
146
+		    if(clamdscan_mode)
147
+			exit(2);
148
+		    else
149
+			exit(40);
147 150
 		}
148 151
         }
149 152
     }
... ...
@@ -34,9 +34,6 @@ Read clamd settings from FILE.
34 34
 \fB\-l FILE, \-\-log=FILE\fR
35 35
 Save the scan report to FILE.
36 36
 .TP 
37
-\fB\-\-log\-verbose\fR
38
-Save additional messages (mostly useless) to the report file.
39
-.TP 
40 37
 \fB\-\-no\-summary\fR
41 38
 Do not display summary at the end of scanning.
42 39
 .SH "EXAMPLES"