diff options
| author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 14:30:10 +0000 |
|---|---|---|
| committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 14:30:10 +0000 |
| commit | 1c30911ff0463c1215e15dd9f7acb886ca35a93d (patch) | |
| tree | 17783a29eefdfe8b1d45e4895ff0daaf7f6e92c3 /security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c | |
| parent | - Update to 2.4.3 (diff) | |
Rename security/ patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363328
Diffstat (limited to 'security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c')
| -rw-r--r-- | security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c b/security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c new file mode 100644 index 000000000000..997041c77f9e --- /dev/null +++ b/security/krb5-appl/files/patch-gssftp__ftpd__logwtmp.c @@ -0,0 +1,19 @@ +*** gssftp/ftpd/logwtmp.c.ORIG Fri Feb 6 19:41:25 1998 +--- gssftp/ftpd/logwtmp.c Tue Jun 30 19:46:01 1998 +*************** +*** 66,72 **** + struct stat buf; + time_t time(); + +! if (fd < 0 && (fd = open(WTMPFILE, O_WRONLY|O_APPEND, 0)) < 0) + return; + if (fstat(fd, &buf) == 0) { + (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); +--- 66,72 ---- + struct stat buf; + time_t time(); + +! if (fd < 0 && (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) + return; + if (fstat(fd, &buf) == 0) { + (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); |
