who: don’t crash if clock gyrates
commit123d03dca47c4d8e0dc896dd8c5732329e6acffe
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2023 18:31:41 +0000 (1 11:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2023 18:51:16 +0000 (1 11:51 -0700)
treeb086a9c9c645974c27811a69c2b31f8ce86b34ae
parentc0285a713671df2347051f27a2f5f0375a2acf04
who: don’t crash if clock gyrates

* src/who.c (idle_string): Avoid signed integer overflow
if the superuser messes with the clock in bizarre ways.
Remove an ‘assume’ that wasn’t correct under this scenario.
src/who.c