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

Defect in XSH rename

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH rename
From: yyyy@xxxxxxx
Date: Thu, 29 Sep 2005 04:49:19 +0100 (BST)
        Defect report from : Eric Blake , N/A

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 1232 line 38638 section rename objection {ebb.rename}

Problem:

Edition of Specification (Year): 2004

Defect code :  2. Omission

The rationale for rename(2), line 38727, states "Renaming dot or dot-dot is 
prohibited in order to prevent cyclical file system paths."  However, nothing 
in the requirements mentions this restriction.  Contrast this with rmdir(2), 
which explicitly forbids removing a pathname ending with a . or .. component.


Action:

Before line 38638, add a new paragraph:

If either pathname argument refers to a path whose final component is either 
dot or dot-dot, rename() shall fail.

At line 38667, expand the EINVAL paragraph:

The new directory pathname contains a path prefix that names the old directory, 
or either pathname argument contains a last component that is dot or dot-dot.

<Prev in Thread] Current Thread [Next in Thread>