]> git.ozlabs.org Git - ppp.git/commitdiff
chat: Allow TIMEOUT value to come from environment variable
authorAshok Rao <greatarbor@gmail.com>
Sat, 11 Sep 2010 12:14:48 +0000 (22:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 11 Sep 2010 12:15:28 +0000 (22:15 +1000)
This allows the TIMEOUT value to be obtained from the environment
using the $ENVVAR syntax.

Signed-off-by: Paul Mackerras <paulus@samba.org>
chat/chat.c

index 0b88c279156b029f371ffe703a33c0d0cb7b19d4..710dba9a41c9c0edeb7d916ce1a7171ea80855d5 100644 (file)
@@ -1167,6 +1167,7 @@ register char *s;
 
     if (timeout_next) {
        timeout_next = 0;
+       s = clean(s, 0);
        timeout = atoi(s);
        
        if (timeout <= 0)