summaryrefslogtreecommitdiffhomepage
path: root/auth.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-01-13 03:55:59 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-01-13 03:55:59 +0000
commitbb0548b3b00ca1b0b06e4d0ccf6cb794337eb192 (patch)
tree9692d7d32f6e274634af9345f79c1d436b38aed8 /auth.h
parent25554bc331cc684c3521b3c3ed4c0659c454d5df (diff)
Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep
--HG-- extra : convert_revision : 295b11312e327fe6c4f33512674ea4a1a9790344
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/auth.h b/auth.h
index 661265a..b8e55bb 100644
--- a/auth.h
+++ b/auth.h
@@ -91,9 +91,12 @@ struct AuthState {
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;