| To: | yyyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Defect in XCU touch -r |
| From: | yyyyyy@xxxxxxxxxxx |
| Date: | Mon, 12 Jun 2006 10:59:03 +0100 (BST) |
Defect report from : Paul Eggert , UCLA
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 920 line 35664 section touch -r objection {20060611d}
Problem:
Edition of Specification (Year): 2004
Defect code : 1. Error
This Aardvark follows up to XSH ERN 138 (Defect in XSH utimes). It
refers to the implication for 'touch -r' of subsecond timestamps.
The specification for 'touch' forbids 'touch -r FOO BAR' from copying
any subsecond part of FOO's timestamp to BAR. But common
existing practice is to copy it as best it can with 'utimes' (I have
verified this on both Solaris 10 and GNU 'touch'). For example, with
Solaris:
$ /usr/bin/touch -r /tmp/bar /tmp/baz
$ gnuls -l --full-time /tmp/bar /tmp/baz
-rw-rw-r-- 1 eggert faculty 4 2006-06-12 02:18:34.216902800 -0700 /tmp/bar
-rw-rw-r-- 1 eggert faculty 0 2006-06-12 02:18:34.216902000 -0700 /tmp/baz
POSIX says that the ".216902000" should be ".000000000", but Solaris
'touch' and GNU 'touch' disagree.
Action:
After line 35664 add (indented as part of (2):
except that, if the requested timestamp has subsecond components,
touch shall also set the subsecond components (if any) of the
corresponding file timestamps to the greatest supported value not
greater than the requested value.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Defect in XCU touch (pre-Epoch), eggert |
|---|---|
| Next by Date: | Defect in XCU touch -t, eggert |
| Previous by Thread: | Defect in XCU touch (pre-Epoch), eggert |
| Next by Thread: | Defect in XCU touch -t, eggert |
| Indexes: | [Date] [Thread] [All Lists] |