]> git.ipfire.org Git - thirdparty/util-linux.git/commit
renice: use proper types and strutils for ID parsing
authorWanBingjiang <wanbingjiang@webray.com.cn>
Thu, 23 Apr 2026 09:49:07 +0000 (17:49 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 29 Apr 2026 07:01:10 +0000 (15:01 +0800)
commitaf630ea848cf8701d22688671d944b7f134fd623
tree9bef0f1329a8cf8dc67cf9230a3d68267eb2620e
parentfff8c59c75355d365a69f86719e7bd7818c1daf4
renice: use proper types and strutils for ID parsing

Use ul_strtou32() instead of strtol() to parse PID/UID/GID and reject
negative values. Use strtos32_or_err() for priority. Change 'who' type
to uid_t and adjust getprio()/donice(). Use %u for unsigned IDs.

Addresses: https://github.com/util-linux/util-linux/issues/4272
Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
sys-utils/Makemodule.am
sys-utils/renice.c