CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2026/05/18 19:12:49

Modified files:
        usr.sbin/ifstated: ifstated.c 

Log message:
usr.sbin/ifstated: timestamp sync external tests

When external_exec() runs a test synchronously, it refreshes prevstatus
but left lastexec unchanged. A later status change could therefore be
ignored by eval_state(), because that code gates body evaluation on the
first external test timestamp for the current state.

Set lastexec together with prevstatus for synchronous runs; this keeps
the cached test status and execution time consistent across state
re-entry.

OK: deraadt@

Reply via email to