On Dec 5, 2007, at 12:52 AM, Hartmut Wernisch wrote:
 823 #ifdef QMAIL_EXT
 824     /* format the file name */
 825     if (strlen(TheExt)) {
 826         strcpy(tmpbuf,".qmail-");
 827         strcat(tmpbuf,TheExt);
 828         if ( (fs = fopen(tmpbuf,"r")) == NULL ) {
 829             for (i=strlen(TheExt);i>=0;--i) {
 830                 if (!i || TheExt[i-1]=='-') {
 831                     strcpy(tmpbuf,".qmail-");
 832                     strncat(tmpbuf,TheExt,i);
 833                     strcat(tmpbuf,"default");
 834                     if ( (fs = fopen(tmpbuf,"r")) != NULL) {
 835                         break;
 836                     }
 837                 }
 838             }
 839         }
 840     } else {
 841         fs = fopen(".qmail","r");
 842     }
 843 #else
 844     fs = fopen(".qmail","r");
 845 #endif


I think I know what the problem is, and it should be a simple fix.

Before line 823, add:

 fs = NULL;

Remove lines 840 - 845 and replace with the following:

 840 #endif
 841 if (fs == NULL) fs = fopen (".qmail", "r");

Hartmut, can you test this fix? Rick, can you get this into the next vpopmail release if Hartmut reports it as good?

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



!DSPAM:4756f8b332001478990189!

Reply via email to