git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@114 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2003/11/15 11:55:35... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Nov 15 03:54:39 CET 2003 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * sigtool: fixed --build problems introduced in 0.65 |
|
4 |
+ |
|
1 | 5 |
Sat Nov 15 01:17:29 CET 2003 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav: cli_scanzip: do malloc() outside of the zip scanning loop; |
... | ... |
@@ -190,8 +190,8 @@ void sigtool(struct optstruct *opt) |
190 | 190 |
} |
191 | 191 |
|
192 | 192 |
} else if(optc(opt, 'b')) { |
193 |
- if(!optc(opt, 's')) { |
|
194 |
- mprintf("!--server, -s is required in this mode\n"); |
|
193 |
+ if(!optl(opt, "server")) { |
|
194 |
+ mprintf("!--server is required in this mode\n"); |
|
195 | 195 |
exit(10); |
196 | 196 |
} |
197 | 197 |
|
... | ... |
@@ -460,7 +460,7 @@ int build(struct optstruct *opt) |
460 | 460 |
int ret, no = 0, realno = 0, bytes, itmp; |
461 | 461 |
struct stat foo; |
462 | 462 |
char buffer[FILEBUFF], *tarfile = NULL, *gzfile = NULL, header[257], |
463 |
- smbuff[25], *pt; |
|
463 |
+ smbuff[30], *pt; |
|
464 | 464 |
struct cl_node *root = NULL; |
465 | 465 |
FILE *tar, *cvd, *fd; |
466 | 466 |
gzFile *gz; |
... | ... |
@@ -568,7 +568,7 @@ int build(struct optstruct *opt) |
568 | 568 |
time(&timet); |
569 | 569 |
brokent = localtime(&timet); |
570 | 570 |
setlocale(LC_TIME, "C"); |
571 |
- strftime(smbuff, 24, "%d %b %Y %H-%M %z:", brokent); |
|
571 |
+ strftime(smbuff, 30, "%d %b %Y %H-%M %z", brokent); |
|
572 | 572 |
strcat(header, smbuff); |
573 | 573 |
|
574 | 574 |
/* version number */ |
... | ... |
@@ -576,7 +576,7 @@ int build(struct optstruct *opt) |
576 | 576 |
/* ... increment version number by one */ |
577 | 577 |
|
578 | 578 |
if(oldcvd) { |
579 |
- sprintf(smbuff, "%d:", oldcvd->version + 1); |
|
579 |
+ sprintf(smbuff, ":%d:", oldcvd->version + 1); |
|
580 | 580 |
} else { |
581 | 581 |
fflush(stdin); |
582 | 582 |
mprintf("Version number: "); |
... | ... |
@@ -608,7 +608,7 @@ int build(struct optstruct *opt) |
608 | 608 |
fd = fopen(gzfile, "rb"); |
609 | 609 |
__md5_stream(fd, &buffer); |
610 | 610 |
fclose(fd); |
611 |
- if(!(pt = getdsig(getargc(opt, 's'), smbuff, buffer))) { |
|
611 |
+ if(!(pt = getdsig(getargl(opt, "server"), smbuff, buffer))) { |
|
612 | 612 |
mprintf("No digital signature - no CVD file...\n"); |
613 | 613 |
unlink(gzfile); |
614 | 614 |
exit(1); |