Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156197 Details for
Bug 242653
tftp-server log in GMT instead of localtime
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
from rhel3s - fixes the issue as expected.
tftp-hpa-0.39-tzfix.patch (text/plain), 1.05 KB, created by
Jose Plans
on 2007-06-05 10:04:48 UTC
(
hide
)
Description:
from rhel3s - fixes the issue as expected.
Filename:
MIME Type:
Creator:
Jose Plans
Created:
2007-06-05 10:04:48 UTC
Size:
1.05 KB
patch
obsolete
>--- tftp-hpa-0.39/tftpd/tftpd.c.old 2004-09-15 00:38:46.000000000 +0200 >+++ tftp-hpa-0.39/tftpd/tftpd.c 2006-04-10 17:26:31.000000000 +0200 >@@ -286,7 +286,14 @@ > char *rewrite_file = NULL; > #endif > u_short tp_opcode; >- >+ time_t my_time = 0; >+ struct tm* p_tm; >+ char envtz[10]; >+ my_time = time(NULL); >+ p_tm = localtime(&my_time); >+ snprintf(envtz, sizeof(envtz) - 1, "UTC%+d", (p_tm->tm_gmtoff * -1)/3600); >+ setenv("TZ", envtz, 0); >+ > /* basename() is way too much of a pain from a portability standpoint */ > > p = strrchr(argv[0], '/'); >diff -rdu tftp-hpa-0.39/tftpd/recvfrom.c tftp-hpa-0.42/tftpd/recvfrom.c >--- tftp-hpa-0.39/tftpd/recvfrom.c 2002-11-09 03:22:59.000000000 +0100 >+++ tftp-hpa-0.42/tftpd/recvfrom.c 2006-02-16 18:45:22.000000000 +0100 >@@ -110,7 +109,7 @@ > for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ; > cmptr = CMSG_NXTHDR(&msg, cmptr) ) { > >-#ifdef IP_RECVSTDADDR >+#ifdef IP_RECVDSTADDR > if ( cmptr->cmsg_level == IPPROTO_IP && > cmptr->cmsg_type == IP_RECVDSTADDR ) { > memcpy(&myaddr->sin_addr, CMSG_DATA(cmptr),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242653
: 156197