Re: ezmlm-issubn: non-existent directories
Bruce Guenter <[email protected]> Wed, 6 Feb 2008 16:23:34 -0600
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Feb 06, 2008 at 10:37:12AM +0100, Lars Kruse wrote: > So I am still not sure: is ezmlm-issubn supposed to be backward compatible > (regarding absolute paths)? It is. When I merged in one of the major change sets, it took out backwards compatibility and modified the tests to no longer test for backwards compatibility. :( I can't see why I did it, but there it is. Here is a patch that fixes the problem for me. Let me know if this makes it work for you. -- Bruce Guenter <[email protected]> http://untroubled.org/ diff --git a/ezmlm-issubn.c b/ezmlm-issubn.c index 3ee4da9..f9a21e2 100644 --- a/ezmlm-issubn.c +++ b/ezmlm-issubn.c @@ -46,6 +46,15 @@ void main(int argc,char **argv) } } else { + /* If all the options are absolute, scan each one; else treat the + * first option as the base directory and the rest as database + * names. */ + for (opt = --optind; opt < argc; ++opt) { + if (argv[opt][0] != '/') { + ++optind; + break; + } + } while ((subdir = argv[optind++]) != 0) { if (issub(subdir,addr,0)) { closesub();
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFHqjNm6W+y3GmZgOgRAkaRAJ0cPKqh2lPwKBZVd02COIuGLRp9jgCfezG0 4GGaWjblG33XgS5rNHnKgew= =CKla -----END PGP SIGNATURE-----