delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/18/03:47:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <2DF4B08BBEB1D111AE20006008CB4EAE36FACB@gomez.mercury.co.il>
From: Eran Leshem <eranl AT mercury DOT co DOT il>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: B20: 'find' modifies file access dates
Date: Sun, 18 Jul 1999 10:45:23 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

------_=_NextPart_001_01BED0F9.E029BE3E
Content-Type: text/plain;
	charset="iso-8859-1"

Problem: 'find' changes the access dates of files it checks to the day of
its execution. It should access only directories it traverses. This happens
only with directories containing sub-directories. The files it touches are
the first in disk order. The first file not touched always appears after a
sub-directory entry.

Configuration: Beta 20 under Win98, FAT & FAT32 file systems, find version
4.1

Example: cd <some directory with sub-directories>; find; ls -luU
You will see that most of the files (first ones) have an access date of
today.

This doesn't happen when I use Linux 'find' on the same file systems, so the
problem probably isn't in 'find' itself; This also doesn't happen when I use
Windows' 'Find Files' on the same file systems, so the problem probably
isn't with the WIN32 API; So I guess the problem is with the cygwin DLL.

Please respond directly to me, since I'm not on this list (yet).

I'll appreciate any help.

		Eran Leshem


------_=_NextPart_001_01BED0F9.E029BE3E
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>B20: 'find' modifies file access dates</TITLE>
</HEAD>
<BODY>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Problem:</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">find</FONT><FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"> changes the access dates of files it checks to =
the day of its execution. It should access only directories it =
traverses. This happens only with directories containing</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">sub-directories. The files it touches are the =
first in disk order. The first file not touched always appears after a =
sub-directory entry.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Configuration: Beta 20 =
under Win98, FAT &amp; FAT32 file systems, find version 4.1</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Example: cd &lt;some =
directory with</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">sub-directories&gt;; find; ls</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">-</FONT><FONT SIZE=3D2 FACE=3D"Arial">luU</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">You will see that most of =
the files (first ones) have an access date of today.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">This doesn</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">t happen =
when I use Linux</FONT> <FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">find</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial"> on the same file =
systems, so the problem probably isn</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">t in</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">find</FONT><FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"> itself; This also doesn</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">t happen =
w</FONT><FONT SIZE=3D2 FACE=3D"Arial">hen I use Windows</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial"></FONT> =
<FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">Find Files</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial"> on the same file =
systems, so the problem probably isn</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">t with the WIN32 =
API; So I guess the problem is with the cygwin DLL.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Please respond directly =
to me, since I</FONT><FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">m not on this list (yet).</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">ll appreciate any =
help.</FONT></P>
<UL><UL>
<P ALIGN=3DLEFT><I><FONT SIZE=3D2 FACE=3D"Arial">Eran =
Le</FONT></I><I><FONT SIZE=3D2 FACE=3D"Arial">shem</FONT></I></P>
</UL></UL>
</BODY>
</HTML>
------_=_NextPart_001_01BED0F9.E029BE3E--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019