summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Enderborg <peter.enderborg@sonyericsson.com>2010-04-08 15:25:07 +0200
committerJoakim Elvander <joakim.elvander@sonyericsson.com>2010-04-08 15:38:24 +0200
commit11088bb1896dff9caae1378d463bd349f96520aa (patch)
tree9d13b1f7e5a50f170dd6932a23f9bd91210ab8cf
parent9d869087afe63b8506a367aaeb2008459c823ecf (diff)
downloadppp-11088bb1896dff9caae1378d463bd349f96520aa.tar.gz
Added proper handling of pty-names for pipe usage.
This fixes running ppp through adb as sockets, that are connected to a pipe with the help of nc. Further, the path construction now corresponds to other versions of pppd. Change-Id: Ib810dc69cbdf08b58cde65210b31cd7bd1427721
-rw-r--r--pppd/sys-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c
index a4c43d1..0d2645a 100644
--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -2561,7 +2561,7 @@ get_pty(master_fdp, slave_fdp, slave_name, uid)
if (mfd >= 0) {
int ptn;
if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
- slprintf(pty_name, sizeof(pty_name), "/dev.pts/%d", ptn);
+ slprintf(pty_name, sizeof(pty_name), "/dev/pts/%d", ptn);
chmod(pty_name, S_IRUSR | S_IWUSR);
#ifdef TIOCSPTLCK
ptn = 0;