delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/11/12:22:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 11 Apr 2005 17:14:13 +0100
From: thomas DOT revell AT powerconv DOT alstom DOT com
Subject: Re: ctime updated unexpectedly
To: ericblake AT comcast DOT net (Eric Blake)
Cc: cygwin AT cygwin DOT com
Message-id: <OF796FE901.62A74498-ON80256FE0.0058DA29-80256FE0.0059D18E@test.alstom.com>
MIME-version: 1.0
X-IsSubscribed: yes

>Hi everyone,
>> 
>> I wonder if someone could clear up an issue I'm having with ls -c 
(sorting 
>> files by ctime). As I understand it, the ctime is only updated when 
file 
>> status information (such as permissions) changes, or a file is 
completely 
>> recreated. It looks to me though, like the ctime is being updated every 

>> time the contents of a file change.

>You misunderstand ctime, as specified by POSIX.  See http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html, section 4.7, and >various other places within POSIX.  ctime is required 
to reflect any change to a file's metadata _or contents_.  Also, while 
mtime can be >arbitrarily changed (think utimes()), ctime is supposed to 
be an accurate side effect of file modification that cannot be spoofed.

OK, thanks for the advice. Do you know if there is any way I can get the 
information I was expecting. If not, I'll have to make some major changes 
to some complicated shell scripts :(

>> 
>> :.________________
>> CONFIDENTIALITY : This  e-mail  and  any attachments are confidential 
and 
>> may be privileged. If  you are not a named recipient, please notify the 

>> sender immediately and do not disclose the contents to another person, 
use 
>> it for any purpose or store or copy the information in any medium.

>Disclaimers like this to a public mailing list are not wise; some people 
refuse to respond to messages with such a disclaimer.

Oops, my bad.

>--
>Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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