nice: return EPERM instead of EACCES
authorAlexey Kodanev <aleksei.kodanev@bell-sw.com>
Tue, 29 Jun 2021 13:31:30 +0000 (16:31 +0300)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2022 22:15:14 +0000 (17:15 -0500)
commit3aba2150d0efc80df30d7fc6c22d6041e14d445e
tree3a419d0ed075b26521d99b34356fa12c7d660fca
parent74a28a8af21977ebbc2945beb879f1b9b6ff13ba
nice: return EPERM instead of EACCES

To comply with POSIX, change errno from EACCES to EPERM
when the caller did not have the required privilege.
src/unistd/nice.c