summaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
authorMike Frysinger2006-05-10 17:14:32 +0000
committerMike Frysinger2006-05-10 17:14:32 +0000
commit772a3467ba373e4911683fd462e5c26a51f49fae (patch)
tree478cd2ba1e877dd3e8caf0d7a51440af8c5ec8ab /networking/telnetd.c
parent673c9443ba34a7606c4cdb2f2d6b9035da9eb97d (diff)
downloadbusybox-772a3467ba373e4911683fd462e5c26a51f49fae.zip
busybox-772a3467ba373e4911683fd462e5c26a51f49fae.tar.gz
some more useful debug info from Jason Holden
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index f2ca287..7b3c698 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -22,6 +22,7 @@
*/
/*#define DEBUG 1 */
+#undef DEBUG
#include <sys/time.h>
#include <sys/socket.h>
@@ -223,6 +224,9 @@ getpty(char *line)
}
for (j = 0; j < 16; j++) {
line[9] = j < 10 ? j + '0' : j - 10 + 'a';
+#ifdef DEBUG
+ fprintf(stderr, "Trying to open device: %s\n", line);
+#endif
if ((p = open(line, O_RDWR | O_NOCTTY)) >= 0) {
line[5] = 't';
return p;
@@ -277,7 +281,7 @@ make_new_session(int sockfd)
pty = getpty(tty_name);
if (pty < 0) {
- syslog(LOG_ERR, "All network ports in use!");
+ syslog(LOG_ERR, "All terminals in use!");
return 0;
}