aboutsummaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-04 23:45:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-04 23:45:09 +0200
commit4c721049c3114c946848fbbd38d6180aa7af537d (patch)
tree3355d5721cd131e5526caa3a47a517c3586d3ade /networking/telnetd.c
parentf8fcc184b6e05cbf5f88aa4f4e716e137a69f97e (diff)
downloadbusybox-w32-4c721049c3114c946848fbbd38d6180aa7af537d.tar.gz
busybox-w32-4c721049c3114c946848fbbd38d6180aa7af537d.tar.bz2
busybox-w32-4c721049c3114c946848fbbd38d6180aa7af537d.zip
who: fix attempts to open '/dev/dev/ttyX'; make columns a bit wider, add -H
function old new delta who_main 292 363 +71 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index dd59de9d4..cab94f0f7 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -74,11 +74,11 @@ struct globals {
74 string of characters fit for the terminal. Do this by packing 74 string of characters fit for the terminal. Do this by packing
75 all characters meant for the terminal sequentially towards the end of buf. 75 all characters meant for the terminal sequentially towards the end of buf.
76 76
77 Return a pointer to the beginning of the characters meant for the terminal. 77 Return a pointer to the beginning of the characters meant for the terminal
78 and make *num_totty the number of characters that should be sent to 78 and make *num_totty the number of characters that should be sent to
79 the terminal. 79 the terminal.
80 80
81 Note - If an IAC (3 byte quantity) starts before (bf + len) but extends 81 Note - if an IAC (3 byte quantity) starts before (bf + len) but extends
82 past (bf + len) then that IAC will be left unprocessed and *processed 82 past (bf + len) then that IAC will be left unprocessed and *processed
83 will be less than len. 83 will be less than len.
84 84