← Commit list

b37f88347

Eric Andersen
Eric Andersen
2004-04-12
FAILED Duration: 26s

Subject

Sigh. The patch from David Anders (prpplague) broke standard securetty files since the /dev was not stripped.

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+3 -1
@@ -127,7 +127,9 @@ extern int login_main(int argc, char **argv)
#endif
tmp = ttyname ( 0 );
- if ( tmp )
+ if ( tmp && ( strncmp ( tmp, "/dev/", 5 ) == 0 ))
+ safe_strncpy ( tty, tmp + 5, sizeof( tty ));
+ else if ( tmp && *tmp == '/' )
safe_strncpy ( tty, tmp, sizeof( tty ));
else
safe_strncpy ( tty, "UNKNOWN", sizeof( tty ));