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

Defect in XCU rm

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU rm
From: yyyyyy@xxxxxxxxxxx
Date: Mon, 26 Jul 2004 05:11:12 +0100 (BST)
        Defect report from : Paul Eggert , UCLA

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 826 line 32097 section rm objection {20040725a}

Problem:

Edition of Specification (Year): 2004

Defect code :  1. Error

POSIX currently requires that "rm ." must output a diagnostic and then
exit with status zero, contrary to common practice.  The EXIT STATUS
section of the specification for "rm" says that the exit status must
be zero if all rmdir() or unlink() calls succeeded, but the algorithm
specified on page 824 makes it clear that "rm ."  never invokes
rmdir() or unlink(), so "rm ." must therefore exit with status zero.

There is a similar problem with "rm /", "rm nonexistentfile", etc.


Action:

Change the following text in lines 32097-32098 from:

    0   All of the named directory entries for which rm performed
        actions equivalent to the rmdir() or unlink() functions
        were removed.

to:

    0   Each directory entry was successfully removed, unless its
        removal was canceled by a non-affirmative response to a
        prompt for confirmation.

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