David Anders (prpplague) submitted this patch to allow login to work
when the device nodes are symlinks on a read only file system.
This commit is contained in:
parent
1117c5281b
commit
21d308601e
@ -127,8 +127,8 @@ extern int login_main(int argc, char **argv)
|
||||
#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 ));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user