diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2011-09-01 05:08:54 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2011-09-01 05:08:54 +0000 |
| commit | 7fdc13c33741f305ee7b72b12dc26068d555f691 (patch) | |
| tree | 379d7f3477e9658d70603c594340d55680f65926 /security/krb5-appl/files/patch-libpty-logwtmp.c | |
| parent | Upgrade to version 9.8.1. Release notes at: (diff) | |
Fix build under 9.0-CURRENT.
Diffstat (limited to 'security/krb5-appl/files/patch-libpty-logwtmp.c')
| -rw-r--r-- | security/krb5-appl/files/patch-libpty-logwtmp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/security/krb5-appl/files/patch-libpty-logwtmp.c b/security/krb5-appl/files/patch-libpty-logwtmp.c new file mode 100644 index 000000000000..b6af12eb74c6 --- /dev/null +++ b/security/krb5-appl/files/patch-libpty-logwtmp.c @@ -0,0 +1,16 @@ +--- libpty/logwtmp.c.orig 2009-11-05 12:15:06.000000000 -0800 ++++ libpty/logwtmp.c 2011-08-31 20:37:06.438225202 -0700 +@@ -104,8 +104,13 @@ + ut.ut_host[sizeof(ut.ut_host) - 1] = '\0'; + #endif + strncpy(ut.ut_line, tty, sizeof(ut.ut_line)); ++#ifdef HAVE_UTMPX_H ++ strncpy(ut.ut_user, user, sizeof(ut.ut_user)); ++ return ptyint_update_wtmpx(&utx); ++#else + strncpy(ut.ut_name, user, sizeof(ut.ut_name)); + return ptyint_update_wtmp(&ut); ++#endif + + #endif /* !HAVE_LOGWTMP */ + } |
