Initialize the pty rows/cols based on the values we stored in user_details.

This fixes a minor issue where we would send an extra window size
change event the first time the command was suspended.
This commit is contained in:
Todd C. Miller
2018-10-05 14:04:29 -06:00
parent c0e8bde104
commit e2570307e6
3 changed files with 12 additions and 8 deletions

View File

@@ -107,8 +107,8 @@ struct user_details {
const char *shell;
GETGROUPS_T *groups;
int ngroups;
int ts_rows;
int ts_cols;
int ts_lines;
};
#define CD_SET_UID 0x00001