From 7ff72b1502f5a9fc5958785b76c8710f2875c1a0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 1996 15:53:03 +0000 Subject: %s is back. svn path=/trunk/; revision=457 --- driver.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'driver.c') 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 -- cgit v1.2.3