Hello community, here is the log from the commit of package tftp for openSUSE:Factory checked in at Sat Oct 2 01:12:53 CEST 2010. -------- --- tftp/tftp.changes 2010-06-29 12:20:26.000000000 +0200 +++ /mounts/work_src_done/STABLE/tftp/tftp.changes 2010-10-01 14:28:15.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Oct 1 12:07:50 UTC 2010 - puzel@novell.com + +- add tftp-hpa-0.48-tzfix.patch (bnc#630297) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- tftp-hpa-0.48-tzfix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tftp.spec ++++++ --- /var/tmp/diff_new_pack.8N07X5/_old 2010-10-02 01:11:33.000000000 +0200 +++ /var/tmp/diff_new_pack.8N07X5/_new 2010-10-02 01:11:33.000000000 +0200 @@ -29,7 +29,7 @@ Requires: inet-daemon netcfg AutoReqProv: on Version: 0.48 -Release: 107 +Release: 110 Summary: Trivial File Transfer Protocol (TFTP) Source: tftp-hpa-git-%{version}.tar.bz2 Source1: tftp.xinetd @@ -38,6 +38,7 @@ Patch2: tftp-hpa-0.43_readline.diff Patch3: tftp-hpa-0.46_libedit.patch Patch4: tftp-hpa-0.49-fortify-strcpy-crash.patch +Patch5: tftp-hpa-0.48-tzfix.patch Patch42: tftp-hpa-0.43_old-autoconf.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,6 +60,7 @@ %patch2 %patch3 %patch4 -p1 +%patch5 -p1 %if 0%{?suse_version} < 1030 %patch42 %endif ++++++ tftp-hpa-0.48-tzfix.patch ++++++ Index: tftp-hpa-git-0.48/tftpd/tftpd.c =================================================================== --- tftp-hpa-git-0.48.orig/tftpd/tftpd.c +++ tftp-hpa-git-0.48/tftpd/tftpd.c @@ -350,6 +350,14 @@ int main(int argc, char **argv) #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], '/'); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org