aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-09 21:27:32 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-09 21:27:32 +0000
commit7b8a3bef95aeefab3e781f73b65319a8f1781a62 (patch)
tree6435465929ddf345fd39b4bd5beb209cbb15367c
parent6e83119cf4042478b3a901363812029229313d67 (diff)
downloadbusybox-w32-7b8a3bef95aeefab3e781f73b65319a8f1781a62.tar.gz
busybox-w32-7b8a3bef95aeefab3e781f73b65319a8f1781a62.tar.bz2
busybox-w32-7b8a3bef95aeefab3e781f73b65319a8f1781a62.zip
David Anders (prpplague) submitted this patch to allow login to work
when the device nodes are symlinks on a read only file system. git-svn-id: svn://busybox.net/trunk/busybox@8603 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--loginutils/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index 3fca899c0..ee50a175a 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -127,8 +127,8 @@ extern int login_main(int argc, char **argv)
127#endif 127#endif
128 128
129 tmp = ttyname ( 0 ); 129 tmp = ttyname ( 0 );
130 if ( tmp && ( strncmp ( tmp, "/dev/", 5 ) == 0 )) 130 if ( tmp )
131 safe_strncpy ( tty, tmp + 5, sizeof( tty )); 131 safe_strncpy ( tty, tmp, sizeof( tty ));
132 else 132 else
133 safe_strncpy ( tty, "UNKNOWN", sizeof( tty )); 133 safe_strncpy ( tty, "UNKNOWN", sizeof( tty ));
134 134