[Midnightbsd-cvs] [MidnightBSD/src] 5a3c4e: batt: harden sysctl value handling

Lucas Holt noreply at github.com
Fri May 1 00:36:33 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 5a3c4e32343405994d0b334d0ac463f6eaafeeb9
      https://github.com/MidnightBSD/src/commit/5a3c4e32343405994d0b334d0ac463f6eaafeeb9
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    M usr.bin/batt/batt.c

  Log Message:
  -----------
  batt: harden sysctl value handling

Reject out-of-range battery life/units and handle unknown battery time (-1) by falling back to AC line messaging.

AI-Assisted-by: GPT-5.2 (Codex CLI)
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list