Paul Eggert <[EMAIL PROTECTED]> wrote:
> 'who' and 'pinky' both assume that ctime never fails, but this isn't
> true on hosts with 64-bit time_t and 32-bit int.  Here's a patch.
>
> 2004-06-19  Paul Eggert  <[EMAIL PROTECTED]>
>
>       Don't dump core if ctime returns NULL; this is possible on
>       hosts with 64-bit time_t and 32-bit int.
>       * src/who.c: Include "inttostr.h".
>       (time_string): If ctime fails, print the raw time as an integer
>       instead of dumping core.
>       * src/pinky.c: Likewise, as follows:
>       Include "inttostr.h".
>       (time_string): New function, copied from who.c.
>       (print_entry): Use it.

Applied. Thanks.
I also applied your other one:

        * src/who.c (print_line): Don't truncate user names at 8 bytes.


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to