KS> Wednesday September 08 1999 00:16, Pablo Saratxaga wrote to
KS> ftnx@karicobs.com
PS> #c:\fidonet\fidon\.006\fdd308aa.we0
PS> There seems to be a bug in the handling of dosoutbund (but I don't
KS> BinkD seems to handle it ok, so maybe you want to compare its source!
KS> :)
binkd it's too different on its internals.
I fixed it by doing the check to remove any ending '/' or '\' in the
function reads the config file; then I remove the line that adds that '/'
--- ifmail-2.15/iflib/rdconfig.c Sat Apr 26 11:46:04 1997
+++ ifmail/iflib/rdconfig.c Thu Sep 9 01:42:12 1999
@@ -350,6 +350,20 @@
if (maxrc < 1) maxrc=1;
}
+ /* suppress ending '/' or '\\' out of outbound and dosoutbound
+ * that makes it easier to use them
+ */
+ if (outbound)
+ {
+ p=outbound+strlen(outbound)-1;
+ if (*p == '/') *p='\0';
+ }
+ if (dosoutbound)
+ {
+ p=dosoutbound+strlen(dosoutbound)-1;
+ if (*p == '\\') *p='\0';
+ }
+
if (whoami && (nllist == NULL))
{
nllist=(fa_list*)xmalloc(sizeof(fa_list));
--- ifmail-2.15/ifgate/ifpack.c Wed Feb 10 23:32:24 1999
+++ ifmail/ifgate/ifpack.c Thu Sep 9 01:41:51 1999
@@ -432,11 +432,7 @@
if (dosoutbound)
{
fprintf(fp,"#%s",dosoutbound);
- if (*(dosoutbound+
- strlen(dosoutbound)-1) != '\\')
- fputc('\\',fp);
- if (*(q=arcfn+strlen(outbound)) == '/')
- q++;
+ q=arcfn+strlen(outbound);
for (;*q;q++)
fputc((*q == '/')?'\\':*q,fp);
fputc('\r',fp);
-- À bientôt, Pablo Saratxaga PGP Key available, key ID: 0x8F0E4975