cli_rmdirs: ENOTEMPTY is EBADF on AIX

git-svn: trunk@1682
remotes/push_mirror/metadata
Tomasz Kojm 20 years ago
parent 9d1e45d497
commit ee21242625
  1. 5
      clamav-devel/ChangeLog
  2. 2
      clamav-devel/clamscan/treewalk.c
  3. 2
      clamav-devel/libclamav/others.c

@ -1,3 +1,8 @@
Wed Aug 3 16:28:20 CEST 2005 (tk)
----------------------------------
* libclamav/others.c: cli_rmdirs: ENOTEMPTY is EBADF on AIX (thanks to
Tayfun Asker <tasker*metu.edu.tr>)
Wed Aug 3 16:16:59 CEST 2005 (tk)
----------------------------------
* freshclam: --on-outdated-execute: do not trigger on f-level warning (which

@ -144,7 +144,7 @@ int rmdirs(const char *dirname)
if((dd = opendir(dirname)) != NULL) {
while(stat(dirname, &maind) != -1) {
if(!rmdir(dirname)) break;
if(errno != ENOTEMPTY && errno != EEXIST) {
if(errno != ENOTEMPTY && errno != EEXIST && errno != EBADF) {
logg("^Can't remove temporary directory %s: %s\n", dirname, strerror(errno));
closedir(dd);
return 0;

@ -515,7 +515,7 @@ int cli_rmdirs(const char *dirname)
if((dd = opendir(dirname)) != NULL) {
while(stat(dirname, &maind) != -1) {
if(!rmdir(dirname)) break;
if(errno != ENOTEMPTY && errno != EEXIST) {
if(errno != ENOTEMPTY && errno != EEXIST && errno != EBADF) {
cli_errmsg("Can't remove temporary directory %s: %s\n", dirname, strerror(errno));
closedir(dd);
return 0;

Loading…
Cancel
Save