Email List: Xaustin-review-lX
[All Lists]

Defect in XCU touch (pre-Epoch)

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU touch (pre-Epoch)
From: yyyyyy@xxxxxxxxxxx
Date: Mon, 12 Jun 2006 10:41:28 +0100 (BST)
        Defect report from : Paul Eggert , UCLA

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 921 line 35696 section touch (pre-Epoch) objection {20060611c}

Problem:

Edition of Specification (Year): 2004

Defect code :  1. Error

The specification for 'touch' requires that a command like "touch -t
196001010000 /tmp/foo" must exit immediately with an error status.
However, common practice, on hosts that support negative time_t
values, is for it to succeed.  I verified this on both Solaris 10 and
GNU/Linux.


Action:

On XCU page 921 lines 35696-35698, change:

   If the resulting time value precedes the Epoch, 'touch' shall exit
   immediately with an error status.

to:

   If the resulting time precedes the Epoch, the behavior is
   implementation-defined.  If the time is out of range for
   the file's timestamp, 'touch' shall exit immediately with
   an error status.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XCU touch (pre-Epoch), eggert <=