mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Use number of tty columns that is passed in user_info instead of
getting it directly in the lbuf code.
This commit is contained in:
@@ -1280,6 +1280,14 @@ deserialize_info(char * const settings[], char * const user_info[])
|
||||
user_shost = estrndup(user_host, (size_t)(p - user_host));
|
||||
continue;
|
||||
}
|
||||
if (MATCHES(*cur, "lines=")) {
|
||||
sudo_user.lines = atoi(*cur + sizeof("lines=") - 1);
|
||||
continue;
|
||||
}
|
||||
if (MATCHES(*cur, "cols=")) {
|
||||
sudo_user.cols = atoi(*cur + sizeof("cols=") - 1);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
#undef MATCHES
|
||||
|
Reference in New Issue
Block a user