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

Defect in XCU chown

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU chown
From: yyyyyyyyyyyyyyy@xxxxxxx
Date: Tue, 30 Sep 2003 18:31:05 +0100 (BST)
        Defect report from : Cynthia Eastham , Sun Microsystems, Inc.

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 242 line 9389-9390 section chown comment {ce-chown-1}

Problem:

Edition of Specification (Year): 2001

Defect code :  1. Error

The 2001 edition SYNOPSIS section is:
    chown -hR owner[:group] file ...
    chown -R [-H | -L | -P] owner[:group] file

This was incorrect and changed in the 2003 edition to:
    chown [-hR] owner[:group] file ...
    chown -R [-H | -L | -P] owner[:group] file

However, this still is incorrect as no where in the text for chown does it talk 
about the behavior when -h is specified with -R.  Upon reading the text for the 
-h, -R, and -P option, it appears that chown -hR is equivalent to chown -RP, 
and therefore there is no need for -h to be allowed with -R. 

Action:

Change:
    (2001 edition)
    chown -hR owner[:group] file ...
    chown -R [-H | -L | -P] owner[:group] file

    (2003 edition)
    chown [-hR] owner[:group] file ...
    chown -R [-H | -L | -P] owner[:group] file



to:
    chown [-h] owner[:group] file ...
    chown -R [-H | -L | -P] owner[:group] file

thus leaving chown -Rh unspecified.

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