[sudo-commits] sudo changeset 10994:c198d1317560
Todd C. Miller
Todd.Miller at courtesan.com
Sat Jun 3 09:28:01 MDT 2017
changeset: 10994:c198d1317560 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/c198d1317560
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Sat Jun 03 08:45:29 2017 -0600
Log Message:
Avoid sign extension when assigning the value of tty_nr in
/proc/self/stat on Linux. It is an unsigned int value that
is printed as a signed int but dev_t is unsigned long long.
We need to cast to unsigned int before assigning to a dev_t.
diffstat:
src/ttyname.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
More information about the sudo-commits
mailing list