samba-vscan/icap vscan-icap_core.c,1.5.2.5,1.5.2.6
Rainer Link <[email protected]> Mon, 27 Sep 2004 13:50:47 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/icap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8847
Modified Files:
Tag: VSCAN_0_3
vscan-icap_core.c
Log Message:
use sys_stat instead of stat to avoid LFS issues
Index: vscan-icap_core.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/icap/vscan-icap_core.c,v
retrieving revision 1.5.2.5
retrieving revision 1.5.2.6
diff -u -d -r1.5.2.5 -r1.5.2.6
--- vscan-icap_core.c 25 Sep 2004 12:27:05 -0000 1.5.2.5
+++ vscan-icap_core.c 27 Sep 2004 13:50:44 -0000 1.5.2.6
@@ -73,7 +73,7 @@
*/
int vscan_icap_scanfile(int sockfd, char *scan_file, char *client_ip)
{
- struct stat stat_buf;
+ SMB_STRUCT_STAT stat_buf;
size_t nread, nwritten;
char ihs[BUFLEN]; /* ICAP Header string */
char hrhs[BUFLEN]; /* HTTP Response Header string */
@@ -90,8 +90,7 @@
/* get file length */
bzero(&stat_buf, sizeof(stat_buf));
- /* FIXME: do we break LFS support here? */
- if ( stat(scan_file, &stat_buf) != 0 ) {
+ if ( sys_stat(scan_file, &stat_buf) != 0 ) {
vscan_syslog("ERROR: could not stat file '%s'", scan_file);
return VSCAN_SCAN_ERROR;
}
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php