This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

untar and gunzip -N don't restore timestamp on NTFS correctly


when file's timestamp comes out of a daylight savings time window 
i.e. mid-summer versus mid-winter

I'm writing a perl script that's trying to preserve timestamps of files
that are pulled down over the internet via ncftp.  The files
are either plain files that are tar czf'ed or gzipped files that
are tar cvf'ed up, if the files in the tar are gzipped then they're
gunzipped with -N to restore time stamp.

This works across time zones on NTFS using Cygwin 
tar/gunzip provided the file's timestamp doesn't come out
of a daylight savings window.  Same script on Linux box
works fine.

I don't have the time right now to dig through the code and
track down the bug.   I'm sorry.  Hopefully this report is
useful.

cygcheck:
==========================================

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Nov  6 09:38:10 2000

WinNT Ver 4.0 build 1381 Service Pack 6

Path:	/usr/local/bin
	/usr/bin
	/usr/bin
	/usr/bin
	/usr/local/bin
	/d/Perl/bin/
	/d/dataweb/tools/bin
	/d/mks/mkssi
	/d/mks/mksnt
	/c/WINNT/system32
	/c/WINNT
	/d/java/jikes
	/d/java/jdk1.3/bin
	/d/java/jdk1.3/jre/bin/classic
	/d/java/jdk1.3/jre/bin
	/c/DMI/bin
	/c/WINNT/system32/nls/ENGLISH
	/c/WINNT/system32/nls
	/c/PROGRA~1/Mts
	/d/MSSQL7/BINN
	/d/PROGRA~1/Tcl/bin
	/d/ntreskit
	/d/wscite
	/d/mkssi
	/d/bin
	/d/PROGRA~1/DEVSTU~1/SHARED~1/bin/ide
	/d/PROGRA~1/DEVSTU~1/SHARED~1/bin
	/d/PROGRA~1/DEVSTU~1/vc/bin
	Y
	.
	.
	/d/PROGRA~1/NcFTP

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `/home/xxh1'
MAKE_MODE = `unix'
PWD = `/home/xxh1'
USER = `xxh1'

!C: = `C:\WINNT\PROFILES\xxh1\DESKTOP\DEV'
!D: = `D:\cygwin\bin'
!F: = `F:\LOGIN'
!H: = `H:\SHARE'
!L: = `L:\LINK\XXH1'
!N: = `N:\APPS'
!Y: = `Y:\'
ANT_HOME = `d:\dataweb\tools'
COMPUTERNAME = `WEPO-OD-XXH1NTK'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVSEDITOR = `scite.exe'
CVSIGNORE = `*.bak #* *~'
CVS_RSH = `ssh.exe'
DIRCMD = `/ON'
FULL_NAME = `* Unknown *'
HOMEDIR = `d:\Program Files\mbone'
HOMEDRIVE = `C:'
HOMEPATH = `\users\default'
HOSTNAME = `WEPO-OD-XXH1NTK'
HOSTTYPE = `i686'
INCLUDE = `d:\program files\devstudio\vc\include;d:\program
files\devstudio\vc\atl\include;d:\program
files\devstudio\vc\mfc\include;C:\Program Files\Mts\Include'
JAVAHOME = `d:\java\jdk1.3'
JAVA_HOME = `d:\java\jdk1.3'
LIB = `d:\program files\devstudio\vc\lib;d:\program
files\devstudio\vc\mfc\lib;C:\Program Files\Mts\Lib'
LOGONSERVER = `\\ICDC-ATL-DC3'
MACHTYPE = `i686-pc-cygwin'
MAPROOTOFF = `1'
MSDEVDIR = `d:\Program Files\DevStudio\SharedIDE'
MSINPUT = `C:\Program Files\MS Hardware'
NUMBER_OF_PROCESSORS = `1'
NWLANGUAGE = `ENGLISH'
NWUSERNAME = `xxh1'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.JS;.VBE;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 2, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0502'
PROMPT = `$P$G'
PS1 = `]0;\w
\u@\h \w
$ '
ROOTDIR = `d:/mks'
SERVER = `AEPO-XDV-KOGR1'
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `/c/TEMP'
TERM = `cygwin'
USERDOMAIN = `CDC'
USERNAME = `xxh1'
USERPROFILE = `C:\WINNT\Profiles\xxh1'
WIN32DMIPATH = `C:\DMI\'
WINDIR = `C:\WINNT'
WINDOWS_LOGIN = `0'
_ = `/usr/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c
  (default) = `c:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/d
  (default) = `d:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/i
  (default) = `i:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/o
  (default) = `o:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/q
  (default) = `q:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/t
  (default) = `t:'
  flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `C:'
  unix = `/'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `d:/cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `d:/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `d:/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32

a:  fd           N/A    N/A                    
c:  hd  FAT     2047Mb  77% CP    UN           
d:  hd  NTFS    6008Mb  50% CP CS UN PA FC     
e:  cd           N/A    N/A                    
f:  net NWFS    5000Mb  51% CP                 SYS
g:  net NTFS    2047Mb  67% CP CS UN PA FC     
h:  net NWFS     642Mb  85% CP          FC     SHARED
i:  net NTFS   40821Mb  51% CP CS UN PA FC     
j:  net NWFS    1500Mb  72% CP          FC     WONDER
k:  net NTFS   40821Mb  51% CP CS UN PA FC     
l:  net NWFS    3375Mb  98% CP          FC     DATA
m:  net NTFS    6667Mb  23% CP CS UN PA FC     
n:  net NWFS   20000Mb  46% CP          FC     APPS
o:  net NTFS    4055Mb  31% CP CS UN PA FC     
p:  net NTFS   40821Mb  51% CP CS UN PA FC     
q:  net NTFS   17351Mb  60% CP CS UN PA FC     DATA
r:  net NTFS    2000Mb  60% CP CS UN PA FC     
s:  net         2000Mb  46%                    
v:  net NTFS    6636Mb  74% CP CS UN PA FC     DATA
x:  net          N/A    N/A                    

d:\cygwin\bin  /usr/bin  system  binmode
d:\cygwin\lib  /usr/lib  system  binmode
d:\cygwin  /        system  binmode
c:    /c       user    textmode
d:    /d       user    textmode
i:    /i       user    textmode
o:    /o       user    textmode
q:    /q       user    textmode
t:    /t       user    textmode

Found: d:\cygwin\bin\bash.exe
Found: d:\cygwin\bin\cat.exe
Found: d:\ntreskit\cat.exe
Warning: d:\cygwin\bin\cat.exe hides d:\ntreskit\cat.exe
Found: d:\cygwin\bin\cpp.exe
Found: d:\cygwin\bin\find.exe
Found: d:\cygwin\bin\gcc.exe
Found: d:\cygwin\bin\gdb.exe
Found: d:\cygwin\bin\ld.exe
Found: d:\cygwin\bin\ls.exe
Found: d:\ntreskit\ls.exe
Warning: d:\cygwin\bin\ls.exe hides d:\ntreskit\ls.exe
Found: d:\cygwin\bin\make.exe
Found: d:\mks\mksnt\make.exe
Warning: d:\cygwin\bin\make.exe hides d:\mks\mksnt\make.exe
Found: d:\cygwin\bin\sh.exe

   83k 2000/06/11 d:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/6/10 23:34
   35k 2000/06/11 d:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/6/10 23:34
  402k 2000/06/11 d:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/6/10 23:30
    5k 2000/06/11 d:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/06/11 d:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/6/10 23:30
  639k 2000/06/11 d:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/6/10 23:34
  586k 2000/08/04 d:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/8/3 20:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3
==========================================

Heitzso
Information Technology Branch
Centers for Disease Control and Prevention
xxh1@cdc.gov

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]