mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-22 13:31:32 -05:00
Merge the 0.74 release branch back to master.
Two minor memory-leak fixes on 0.74 seem not to be needed on master: the fix in an early exit path of pageant_add_keyfile is done already on master in a different way, and the missing sfree(fdlist) in uxsftp.c is in code that's been completely rewritten in the uxcliloop refactoring. Other minor conflicts: the rework in commit b52641644905 of ssh1login.c collided with the change from FLAG_VERBOSE to seat_verbose(), and master and 0.74 each added an unrelated extra field to the end of struct SshServerConfig.
This commit is contained in:
@ -206,6 +206,8 @@ static void setup_utmp(char *ttyname, char *location)
|
||||
struct timeval tv;
|
||||
|
||||
pw = getpwuid(getuid());
|
||||
if (!pw)
|
||||
return; /* can't stamp utmp if we don't have a username */
|
||||
memset(&utmp_entry, 0, sizeof(utmp_entry));
|
||||
utmp_entry.ut_type = USER_PROCESS;
|
||||
utmp_entry.ut_pid = getpid();
|
||||
|
Reference in New Issue
Block a user