Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 01:34:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253736] backlight(8) arg parsing can be tricked in a small way
Message-ID:  <bug-253736-227-WUoeglSKMp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253736-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253736-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253736

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

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

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

    percent =3D percent =3D=3D 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 i=
f no
percentage is provided, rather than to do this specifically given a percent=
age
of zero.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253736-227-WUoeglSKMp>