diff options
author | brian <brian@FreeBSD.org> | 1997-05-10 03:39:57 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-10 03:39:57 +0000 |
commit | 625e8802da19871e465f595a01b0cc34493cb200 (patch) | |
tree | 10b9c5f12ab5ab1eb73b70d01f34abe7d3acab11 /usr.sbin/ppp/command.c | |
parent | ee523bb0cbc38ef1b0865690d30095b8d9453449 (diff) | |
download | FreeBSD-src-625e8802da19871e465f595a01b0cc34493cb200.zip FreeBSD-src-625e8802da19871e465f595a01b0cc34493cb200.tar.gz |
Add a ttyXX.if file in /var/run that points to
the tunX.pid file. Change the ppp.tunX.pid name
to tunX.pid
Requested by: Daniel O Callaghan <danny@panda.hilink.com.au>
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 64d5f80..88fd295 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.42 1997/05/09 23:34:56 brian Exp $ + * $Id: command.c,v 1.43 1997/05/10 01:22:08 brian Exp $ * */ #include <sys/types.h> @@ -1025,6 +1025,8 @@ int param; case VAR_DEVICE: strncpy(VarDevice, *argv, sizeof(VarDevice)-1); VarDevice[sizeof(VarDevice)-1] = '\0'; + VarBaseDevice = rindex(VarDevice, '/'); + VarBaseDevice = VarBaseDevice ? VarBaseDevice + 1 : ""; break; case VAR_ACCMAP: sscanf(*argv, "%lx", &map); |