diff options
author | brian <brian@FreeBSD.org> | 1999-12-22 21:48:12 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-12-22 21:48:12 +0000 |
commit | baf28880b36151165091a7ac625d48a22daaf1fc (patch) | |
tree | d166f00f9abad88e11532235307232197541793c /usr.sbin/ppp/auth.c | |
parent | 58518e59bd5ba53d638362dcfdbbd87ac09bf4ba (diff) | |
download | FreeBSD-src-baf28880b36151165091a7ac625d48a22daaf1fc.zip FreeBSD-src-baf28880b36151165091a7ac625d48a22daaf1fc.tar.gz |
Don't munge ``set dial|login|logout|hangup'' arguments before
ExpandString() has a chance to do its own substitutions.
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r-- | usr.sbin/ppp/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c index 7c66fcd..cc22b5e 100644 --- a/usr.sbin/ppp/auth.c +++ b/usr.sbin/ppp/auth.c @@ -117,7 +117,7 @@ auth_SetPhoneList(const char *name, char *phone, int phonelen) continue; buff[strlen(buff) - 1] = '\0'; memset(vector, '\0', sizeof vector); - if ((n = MakeArgs(buff, vector, VECSIZE(vector))) < 0) + if ((n = MakeArgs(buff, vector, VECSIZE(vector), 1)) < 0) log_Printf(LogWARN, "%s: %d: Invalid line\n", SECRETFILE, lineno); if (n < 5) continue; @@ -168,7 +168,7 @@ auth_Select(struct bundle *bundle, const char *name) continue; buff[strlen(buff) - 1] = '\0'; memset(vector, '\0', sizeof vector); - if ((n = MakeArgs(buff, vector, VECSIZE(vector))) < 0) + if ((n = MakeArgs(buff, vector, VECSIZE(vector), 1)) < 0) log_Printf(LogWARN, "%s: %d: Invalid line\n", SECRETFILE, lineno); if (n < 2) continue; @@ -227,7 +227,7 @@ auth_Validate(struct bundle *bundle, const char *name, continue; buff[strlen(buff) - 1] = 0; memset(vector, '\0', sizeof vector); - if ((n = MakeArgs(buff, vector, VECSIZE(vector))) < 0) + if ((n = MakeArgs(buff, vector, VECSIZE(vector), 1)) < 0) log_Printf(LogWARN, "%s: %d: Invalid line\n", SECRETFILE, lineno); if (n < 2) continue; @@ -271,7 +271,7 @@ auth_GetSecret(struct bundle *bundle, const char *name, int len, if (buff[n] == '\n') buff[n] = '\0'; /* Trim the '\n' */ memset(vector, '\0', sizeof vector); - if ((n = MakeArgs(buff, vector, VECSIZE(vector))) < 0) + if ((n = MakeArgs(buff, vector, VECSIZE(vector), 1)) < 0) log_Printf(LogWARN, "%s: %d: Invalid line\n", SECRETFILE, lineno); if (n < 2) continue; |