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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253736 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 = 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253736-227-WUoeglSKMp>
