delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/08/19:12:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-10.2 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FA9A85D.3060305@redhat.com>
Date: Tue, 08 May 2012 17:12:29 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How exactly does ctime work?
References: <CA+jjjYR+NQwMDtahEVze1bY9H3k+gfWP-LocBdQVmaPRvmMtbg AT mail DOT gmail DOT com>
In-Reply-To: <CA+jjjYR+NQwMDtahEVze1bY9H3k+gfWP-LocBdQVmaPRvmMtbg@mail.gmail.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigB9C86559A482B7A89984E9CE
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 05/08/2012 05:06 PM, Joshua Hudson wrote:
> We had a weird incident involving ctime changing unexpectedly when
> mtime did not.
>=20
> On a normal UNIX system, we'd immediately say somebody changed the
> file and set mtime back, but on Cygwin, ctime appears to be synthetic.

Not necessarily true.  On a normal UNIX system, it is also possible to
chmod the file, which changes the ctime but not the mtime.

>=20
> How exactly does ctime work on Cygwin? I can't find any useful
> documentation except for some mailing list discussions circa 2005 that
> leave me with no answers.

It operates as much like POSIX requires it to as we can make it behave.
 In particular, ctime cannot be faked by the user, and is altered any
time any other piece of file metadata is modified, including via calls
such as chmod.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigB9C86559A482B7A89984E9CE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPqahdAAoJEKeha0olJ0NqOyIH/2zDN3bCMaCWkw8doQhYNP6M
FR9HTd9R5KPSXc3oMN88t9Thqo5qICWxreMvOhRov/u4qtetQrUxu11HecjsusBb
6i0cMFHWZqFcaI0tCqGa3Qi+qHvTtO6WcQrFH/vPfNDA1Z/fI6H1h9x+LxsYDcp8
Q3+6EzQWvw0F3hi8skaG4/JzZKew97aVFtjMTun5nmhT+VX7lqK98+4EJ9LDwPtK
iBiZLK2Wpl9UB4NYcJWKt2pHmR5nGw/MxK+UlY5hMpABehJMG77pqIGajvnorjz4
6VXvyUHFs//iYt9oZiRbpndo5QvRs/mOLymLUNgA0q3Z5ffUUuMFYdNsYul+Ao8=
=2Ue+
-----END PGP SIGNATURE-----

--------------enigB9C86559A482B7A89984E9CE--

- Raw text -


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