Issues w/ timezones on gssftpd

Philip Prindeville philipp at redfish-solutions.com
Thu Nov 30 20:18:22 EST 2006


Jeffrey Hutzelman wrote:

>On Wednesday, November 29, 2006 07:17:20 PM -0700 Philip Prindeville 
><philipp at redfish-solutions.com> wrote:
>
>  
>
>>Russ Allbery wrote:
>>
>>    
>>
>>>Philip Prindeville <philipp at redfish-solutions.com> writes:
>>>
>>>
>>>
>>>      
>>>
>>>>Well, __GLIBC__ isn't so much platform-specific as it is compiler and
>>>>run-time library specific, but I found a new patch that's simpler and
>>>>more portable (it uses __USE_POSIX_ instead, which is portable).
>>>>
>>>>
>>>>        
>>>>
>>>I believe __USE_POSIX is an internal define used by glibc to selectively
>>>enable portions of the header files.
>>>
>>>The preferred way of handling issues like this is to probe, using
>>>Autoconf, for the presence or absence of the specific behavior or bug
>>>that one is trying to correct for, let Autoconf define an appropriate
>>>macro, and make the code conditional on that macro.
>>>
>>>
>>>      
>>>
>>Ok, how about having autoconf test libc for the presence of tzset and
>>generate HAVE_TZSET if it's present?
>>
>>Can someone walk me through hacking up configure.in to do this?
>>    
>>
>
>AC_CHECK_FUNCS(tzset)
>
>  
>

That's easy enough.  So I rewrote the patch, and compiled, and here's
the patch plus the logging.

Nov 30 18:13:31 mail ftpd[2710]: connection from 192.168.1.8 (pvr.redfish-solutions.com) at Thu Nov 30 18:13:31 2006
Nov 30 18:13:35 mail ftpd[2710]: ANONYMOUS FTP LOGIN FROM 192.168.1.8, pvr.redfish-solutions.com (guest)
Dec  1 01:14:15 mail ftpd[2710]: get /pub/resume-ng.doc
Dec  1 01:14:15 mail ftpd[2710]: get: 55296 bytes transferred


So...  the "ANONYMOUS..." line is generated after the chroot, and has
the correct timezone.  But the two lines that follow didn't.

What was the theory about that again?

-Philip


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gssftpd-timestamp3.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20061130/9c43884b/attachment.bin


More information about the krbdev mailing list