Re: /var/log/failedlogin is a binary file with a lot of null bytes?!

2021-07-17 Thread podolica
Philip Guenther schrieb am Samstag, 17. Juli 2021 um 11:09: > On Fri, Jul 16, 2021 at 11:49 PM podolica wrote: > >> On my OpenBSD installation (6.9) one of the log files created by login(1) >> seems to be a binary file: >> $ less /var/log/failedlogin >> "failedlogin" may be a binary file. See it

Re: /var/log/failedlogin is a binary file with a lot of null bytes?!

2021-07-17 Thread Ingo Schwarze
Hi, podolica wrote on Sat, Jul 17, 2021 at 12:36:05PM +: > Philip Guenther schrieb am 17. Juli 2021 um 11:09: >> That file is specific to the 'login' command, specifically the >> source file /usr/src/usr.bin/login/failedlogin.c and consists of >> an array of the 'badlogin' structure specifie

/var/log/failedlogin is a binary file with a lot of null bytes?!

2021-07-17 Thread podolica
Hi all, On my OpenBSD installation (6.9) one of the log files created by login(1) seems to be a binary file: $ less /var/log/failedlogin "failedlogin" may be a binary file. See it anyway? The hexdump of it is: openbsd# hexdump -C failedlogin 00 00 00 00 00 00 00 00 00 00 00 00

Re: /var/log/failedlogin is a binary file with a lot of null bytes?!

2021-07-17 Thread Philip Guenther
On Fri, Jul 16, 2021 at 11:49 PM podolica wrote: > On my OpenBSD installation (6.9) one of the log files created by login(1) > seems to be a binary file: > $ less /var/log/failedlogin > "failedlogin" may be a binary file. See it anyway? > ... > What can I learn from this logfile? > A lot