[Bug 253736] backlight(8) arg parsing can be tricked in a small way

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 27 01:34:01 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253736

David Schlachter <fbsd-bugzilla at schlachter.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fbsd-bugzilla at schlachter.ca

--- Comment #1 from David Schlachter <fbsd-bugzilla at schlachter.ca> ---
Appears to be by design, see line 199 of usr.bin/backlight/backlight.c:

    percent = percent == 0 ? 10 : percent;

If this behavior isn't changed to do nothing instead, it should maybe be
documented on the man page. I imagine the idea is to incr/decr by 10 only if no
percentage is provided, rather than to do this specifically given a percentage
of zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list