Mail Archives: cygwin/2000/02/21/09:41:20
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <12395 DOT 951143471 DOT 1 AT tigris DOT pounder DOT sol DOT net>
We're using Cygwin v1.0, on NT 4.0 SP4. The problem:
bash and NT report two different modification times
for certain files.
I have attached a file of this type in "bar.tz".
Please "tar zxpf bar.tz" to extract the file "addrdlg.cpp".
Then open a cmd.exe window and do: "dir addrdlg.cpp"; next
open a bash session and do "ls -l addrdlg.cpp". There should be
a 1 hour difference. Can anyone explain this; it seems like a
bug to me.
regards,
Tom Rodman
Johnson Controls
Tom DOT Rodman AT jci DOT com
------- =_aaaaaaaaaa0
Content-Type: application/octet-stream; type="gzipped tar"; name="bar.tz"
(just 1 file in archive)
Content-ID: <12395 DOT 951143471 DOT 2 AT tigris DOT pounder DOT sol DOT net>
Content-Transfer-Encoding: base64
H4sICAzOqjgAA2Jhci50YXIA7ZTbattAEIZ9W4HeYXBv7GAix5WT4pALRSu7oj6ESmkCpSyLd2WL
6mC0SmMS8u7dtS2jJCRXTQplPjDS/vvvaGY8EuO84MnicL5aNd6Ko27Xtm1oAPS69om+KuVIXzf0
juwewPHJ8Sf7pN+zj9V2r9/rN6D7ZhnVuJElKwAajKev+kiesjiDSykK+R55vROWBY4aAbIdARhA
nK4SkYqsZGWcZxDFiTANyzIN0/gYZ/PkhgtoypKzaH24bNbFO1nw+IlWxdaq1iMuIqDEO78cqaVa
xJmATNzCRqJT70rJN5l2hV/8gA79sWcaUiczh/lS/VN7+cdPOAO6uaX0VB0TGY8j/Rjrb6LDVS0C
HrMkX+hnmMZOGwx2Ny33KuMHsLpgheoeWAdn08vx+MBqm8aHAbhkc7S1P+UT0qnMynKvXJZ1f+8M
rylxQof6Uz+s3DpESksmf6mSu6ebVR5FUpS6BWGr2WxvRSkSMS/z4pFsWQ8Pj8KaxsO2hN95zGGf
EckJK5m3Vm3OFqLl1leqLnK9S3NXyrMD2nH6tIyJc1GvgpBrGop1qc0d8IlLPeKHNHSCrx3YlriJ
8YJvNhwGXqid2/J33u90wtaumg659VfbHfj8WrTAG3tuOPumD1SdezFiZeiA/byrqsp9U8+9kT+l
Ey8InJFXr79TDUG71qRJMHraI7UH01noDaBcCnATJuVVfMcKDrdxkgDjHFIhJVsISNlK/eZFLmEp
ClFLaxfXNLwpeZRM+23fkCozNRI8UZ9K0/jXXzgEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQZD/mz9+
H2lDACgAAA==
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <12395 DOT 951143471 DOT 3 AT tigris DOT pounder DOT sol DOT net>
Content-Description: more details
--v-v------------------C-U-T---H-E-R-E-------------------------v-v--
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > uname -a
CYGWIN_NT-4.0 CMKE777 21.0 (0.14/2/2) 1999-9-13 20:44:35 i686 unknown
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > echo $CYGWIN
binmode
> /adm/sa/tmp
> CMKE777 adm > echo $TZ
CST6CDT
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > mount
Device Directory Type Flags
c:\aut\cygwin-v1.0 / system binmode
s:\adm\config\etc /etc system binmode
\\cmke755\scm /mnt/755s system binmode
s:\prep /prep system binmode
s:\user /user system binmode
s:\adm /adm system binmode
c:\aut /aut system binmode
c: /drv/c system binmode
s: /drv/s system binmode
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > /bin/ls -l addrdlg.cpp
-r--r--r-- 1 adm Domain U 1122 Sep 2 08:24 addrdlg.cpp
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > /contrib/bin/perl /adm/bin/sys/Stat addrdlg.cpp
addrdlg.cpp:mtime:936278694:Thu Sep 2 8:24:54 CDT 1999
addrdlg.cpp:atime:950640906:Tue Feb 15 12:55:06 CST 2000
addrdlg.cpp:ctime:949588526:Thu Feb 3 8:35:26 CST 2000
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > cat /adm/bin/sys/Stat
#!/bin/perl
# gives timestamp info to the second for files listed on commandline
require("ctime.pl");
foreach $filename (@ARGV) {
open(INFILE,$filename);
($dev,$ino,$mode,undef,undef,undef,undef,undef,
$atime,$mtime,$ctime )= stat INFILE ;
$mdate = &ctime($mtime);
$adate = &ctime($atime);
$cdate = &ctime($ctime);
print "${filename}:mtime:$mtime:$mdate";
print "${filename}:atime:$atime:$adate";
print "${filename}:ctime:$ctime:$cdate";
}
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > c:/aut/perl5/bin/perl -v # non-Cygnus perl
This is perl, version 5.003_07
Copyright 1987-1996, Larry Wall
+ suidperl security patch
Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
All rights reserved.
Developed by ActiveWare Internet Corp., http://www.ActiveWare.com
Perl for Win32 Build 315 - Built 09:33:08 Dec 31 1997
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > /aut/perl5/bin/perl /adm/bin/sys/Stat addrdlg.cpp
addrdlg.cpp:mtime:936275094:Thu Sep 2 7:24:54 CDT 1999
addrdlg.cpp:atime:950640826:Tue Feb 15 12:53:46 CST 2000
addrdlg.cpp:ctime:949588526:Thu Feb 3 8:35:26 CST 2000
> /cygdrive/c/WINNT/profiles/build/Desktop
> CMKE777 adm > cmd /c dir addrdlg.cpp
Volume in drive C has no label.
Volume Serial Number is 84A4-C80E
Directory of c:\WINNT\profiles\build\Desktop
09/02/99 07:24a 1,122 addrdlg.cpp
1 File(s) 1,122 bytes
2,167,366,144 bytes free
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------- =_aaaaaaaaaa0--
- Raw text -