David Anders (prpplague) submitted this patch to allow login to work
when the device nodes are symlinks on a read only file system.
diff --git a/loginutils/login.c b/loginutils/login.c
index 3fca899..ee50a17 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -127,8 +127,8 @@
#endif
tmp = ttyname ( 0 );
- if ( tmp && ( strncmp ( tmp, "/dev/", 5 ) == 0 ))
- safe_strncpy ( tty, tmp + 5, sizeof( tty ));
+ if ( tmp )
+ safe_strncpy ( tty, tmp, sizeof( tty ));
else
safe_strncpy ( tty, "UNKNOWN", sizeof( tty ));