From: Jack <squ...@cn...> - 2005-10-04 16:53:29
|
Sunday morning something caused process_bsmtp to run wild. It filled the log file with 2 GB of the following: [02-Oct-2005 04:15:04] PHP Warning: fopen(/var/virusmails/spam-e8037697cc4881eb17b7981c5cd1af36-20050929-143628-04941-02.bsmtp): failed to open stream: No such file or directory in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 72 [02-Oct-2005 04:15:04] PHP Warning: feof(): supplied argument is not a valid stream resource in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 76 [02-Oct-2005 04:15:04] PHP Warning: fgets(): supplied argument is not a valid stream resource in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 77 [02-Oct-2005 04:15:04] PHP Warning: feof(): supplied argument is not a valid stream resource in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 76 . . . [02-Oct-2005 04:27:26] PHP Warning: feof(): supplied argument is not a valid stream resource in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 76 [02-Oct-2005 04:27:26] PHP Warning: fgets(): supplied argument is not a valid stream resource in /var/www/html/mail-1.4.5/plugins/amavisnewsql/utils/process_bsmtp.php on line 77 [02-Oct-2005 04:27:26] PHP Warning: fgets(): supplied argument is not a valid stream resource in /var/www/html/mail-1. I haven't determined the root cause (why this file was not there), but filling the logfile seems to have been the result of a missing error check after fopen on line 72 of process_bsmtp.php. I have added an error check on my current version, but I think it would be a good thing to get into the main distribution. Version information =================== OS Fedora 4 (with all updates) HTTP Server Apache (httpd-2.0.54-10.2) PHP php-5.0.4-10.4 Squirrelmail 1.4.5 amavisnewsql 0.8.0 -- Jack |