https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=137365
--- Comment #4 from [email protected] --- Briefly looking at https://svnweb.freebsd.org/base/head/usr.bin/last/last.c?revision=351467&view=markup a possible fix might be ``` --- last.c.orig 2024-12-02 14:05:22 +++ last.c 2024-12-02 14:06:06 @@ -191,6 +191,9 @@ break; case 'f': file = optarg; + if (!strcmp(file, "-")) { + file = "/dev/stdin"; + } break; case 'h': hostconv(optarg); ``` ...but that's completely untested. (I.e., I don't know whether setutxdb(3) will work correctly with /dev/stdin, and I don't have a FreeBSD system to test right now.) -- You are receiving this mail because: You are the assignee for the bug.
