summaryrefslogtreecommitdiffhomepage
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/telnetd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 5188edbab..e312c0b41 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -164,11 +164,7 @@ make_new_session(
/*ts->buf2 = ts->buf1 + BUFSIZE;*/
/* Got a new connection, set up a tty. */
- fd = getpty(tty_name);
- if (fd < 0) {
- bb_error_msg("can't create pty");
- return NULL;
- }
+ fd = xgetpty(tty_name);
if (fd > maxfd)
maxfd = fd;
ts->ptyfd = fd;