summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1999-03-30 06:01:24 +0000
committerPaul Mackerras <paulus@samba.org>1999-03-30 06:01:24 +0000
commit465758ae80763f33dd006f9596aea03946fce1c7 (patch)
treef9beaa715823055aabf2f565cff6e007f50f70c9
parentc8dcd58de5028a2fbade82f593f32f878508c5f6 (diff)
downloadppp-465758ae80763f33dd006f9596aea03946fce1c7.tar.gz
set the SPEED variable later so it is valid
-rw-r--r--pppd/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pppd/main.c b/pppd/main.c
index 0e25622..0fbef86 100644
--- a/pppd/main.c
+++ b/pppd/main.c
@@ -18,7 +18,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.68 1999/03/30 04:22:57 paulus Exp $";
+static char rcsid[] = "$Id: main.c,v 1.69 1999/03/30 06:01:24 paulus Exp $";
#endif
#include <stdio.h>
@@ -323,8 +323,6 @@ main(argc, argv)
log_to_fd = 1; /* default to stdout */
script_setenv("DEVICE", devnam);
- slprintf(numbuf, sizeof(numbuf), "%d", baud_rate);
- script_setenv("SPEED", numbuf);
/*
* Initialize system-dependent stuff and magic number package.
@@ -644,6 +642,9 @@ main(argc, argv)
close(i);
}
+ slprintf(numbuf, sizeof(numbuf), "%d", baud_rate);
+ script_setenv("SPEED", numbuf);
+
/* run welcome script, if any */
if (welcomer && welcomer[0]) {
if (device_script(welcomer, ttyfd, ttyfd, 0) < 0)