aboutsummaryrefslogtreecommitdiff
path: root/security/pam_ssh_agent_auth/files/patch-pam_user_authorized_keys.c
blob: d1a246094c9d6c9345c340d88449b92fa65f2285 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- pam_user_authorized_keys.c.orig	2016-11-13 03:24:32 UTC
+++ pam_user_authorized_keys.c
@@ -90,6 +90,10 @@ extern uint8_t allow_user_owned_authoriz
 
 uid_t authorized_keys_file_allowed_owner_uid;
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX	MAXHOSTNAMELEN
+#endif
+
 void
 parse_authorized_key_file(const char *user,
                           const char *authorized_keys_file_input)