diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 15:53:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 15:53:03 +0000 |
commit | 7ff72b1502f5a9fc5958785b76c8710f2875c1a0 (patch) | |
tree | a02316b05088e42d3ca1630cd5ad1835ed8cb383 /driver.c | |
parent | f773cf68c2b60a003966d8b69a6f90536fad8bd1 (diff) | |
download | fetchmail-7ff72b1502f5a9fc5958785b76c8710f2875c1a0.tar.gz fetchmail-7ff72b1502f5a9fc5958785b76c8710f2875c1a0.tar.bz2 fetchmail-7ff72b1502f5a9fc5958785b76c8710f2875c1a0.zip |
%s is back.
svn path=/trunk/; revision=457
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -621,15 +621,18 @@ struct query *ctl; /* query control record */ /* * We go through this in order to be able to handle very - * long lists of users. + * long lists of users and (re +)implement %s. */ for (idp = xmit_names; idp; idp = idp->next) nlocals++; sp = sargv = (char **)alloca(sizeof(char **) * ctl->mda_argcount+nlocals+2); for (i = 0; i < ctl->mda_argcount; i++) - *sp++ = ctl->mda_argv[i]; - for (idp = xmit_names; idp; idp = idp->next) - *sp++ = idp->id; + if (strcmp("%s", ctl->mda_argv[i])) + *sp++ = ctl->mda_argv[i]; + else + for (idp = xmit_names; idp; idp = idp->next) + *sp++ = idp->id; *sp = (char *)NULL; #ifdef HAVE_SETEUID |