diff options
author | Ashok Rao <greatarbor@gmail.com> | 2010-09-11 22:14:48 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2010-09-11 22:15:28 +1000 |
commit | ae80bf833e48a6202f44a935a68083ae52ad3824 (patch) | |
tree | d6ebadc7129db26c4dc4fadc5ad3f16b80dba654 /chat | |
parent | fd1dcdf758418f040da3ed801ab001b5e46854e7 (diff) | |
download | ppp-ae80bf833e48a6202f44a935a68083ae52ad3824.tar.gz |
chat: Allow TIMEOUT value to come from environment variable
This allows the TIMEOUT value to be obtained from the environment
using the $ENVVAR syntax.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'chat')
-rw-r--r-- | chat/chat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chat/chat.c b/chat/chat.c index 0b88c27..710dba9 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -1167,6 +1167,7 @@ register char *s; if (timeout_next) { timeout_next = 0; + s = clean(s, 0); timeout = atoi(s); if (timeout <= 0) |