aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 15:53:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 15:53:03 +0000
commit7ff72b1502f5a9fc5958785b76c8710f2875c1a0 (patch)
treea02316b05088e42d3ca1630cd5ad1835ed8cb383 /driver.c
parentf773cf68c2b60a003966d8b69a6f90536fad8bd1 (diff)
downloadfetchmail-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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index dee11f45..a8284a30 100644
--- a/driver.c
+++ b/driver.c
@@ -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