aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-13 13:28:25 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-13 13:28:25 +0000
commit7ed60e218009f8e6919c9407dcdf92c4c7c2ddcc (patch)
treed494911a21a55597a68e0d60092f2c5798f0429a
parent548d427adf9a695eed359e1808c8aa9d297d8da8 (diff)
downloadbusybox-w32-7ed60e218009f8e6919c9407dcdf92c4c7c2ddcc.tar.gz
busybox-w32-7ed60e218009f8e6919c9407dcdf92c4c7c2ddcc.tar.bz2
busybox-w32-7ed60e218009f8e6919c9407dcdf92c4c7c2ddcc.zip
Fix \l so it doesnt print the character as well as the tty, from old
patch by Nick Fedchik git-svn-id: svn://busybox.net/trunk/busybox@6834 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--libbb/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/login.c b/libbb/login.c
index 092f1594a..bd8035f41 100644
--- a/libbb/login.c
+++ b/libbb/login.c
@@ -17,7 +17,7 @@
17 * along with this program; if not, write to the Free Software 17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * 19 *
20 * $Id: login.c,v 1.2 2003/02/09 22:40:33 bug1 Exp $ 20 * $Id: login.c,v 1.3 2003/05/13 13:28:25 bug1 Exp $
21 */ 21 */
22 22
23#include <stdio.h> 23#include <stdio.h>
@@ -95,6 +95,7 @@ void print_login_issue(const char *issue_file, const char *tty)
95 95
96 case 'l': 96 case 'l':
97 printf("%s", tty); 97 printf("%s", tty);
98 break;
98 99
99 default: 100 default:
100 putchar(c); 101 putchar(c);