← Commit list

21d308601

Eric Andersen
Eric Andersen
2004-03-09
FAILED Duration: 142s

Subject

David Anders (prpplague) submitted this patch to allow login to work when the device nodes are symlinks on a read only file system.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

loginutils/login.c+2 -2
@@ -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 ));