Mercurial > dropbear
diff auth.h @ 464:4317be8b7cf9
Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 13 Jan 2008 03:55:59 +0000 |
parents | 8f3ec7c104d9 |
children | 52a644e7b8e1 |
line wrap: on
line diff
--- a/auth.h Thu Oct 18 12:18:44 2007 +0000 +++ b/auth.h Sun Jan 13 03:55:59 2008 +0000 @@ -91,9 +91,12 @@ logged. */ /* These are only used for the server */ - char *printableuser; /* stripped of control chars, used for logs etc */ - struct passwd * pw; - + uid_t pw_uid; + gid_t pw_gid; + char *pw_dir; + char *pw_shell; + char *pw_name; + char *pw_passwd; }; struct SignKeyList;