HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2678 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 2678.


Report 2678 Actions


    Problem Report Number 2678
    Submitter's Classification Minor System Fault
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0695
    Raised 2016-08-17 09:48
    Updated 2016-09-22 10:30
    Published 2016-09-22 10:30
    Product Standard Commands and Utilities V4 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.3.10
    Test Identification POSIX.cmd/rm/rm 7
    Specification Shell and Utilities Issue 6
    Location in Spec Assertion 7 in section 4.53.2 of standard P1003.3.2/D8.
    Problem Summary The command "rm ./" with a trailing '/' does not write to stderr if stderr is redirected to a file in the
    current directory.
    Problem Text If you execute the sequence of commands

    mkdir dir007.tmp
    cd dir007.tmp
    touch ../flag007.tmp
    rm -r ./ ../flag0007.tmp > out 2> err

    the files err and out are removed, so it appears that nothing is written to stderr. If you execute

    rm -r ./ ../flag0007.tmp > ../out 2> ../err

    then you can see an error message in ../err.
    Test Output Assertion #7 (A): rm with a pathname whose last component is dot
    Standard error is empty

    Review Information

    Review Type SA Review
    Start Date 2016-08-17 09:48
    Last Updated 2016-08-17 10:38
    Completed 2016-08-17 10:38
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion This request is rejected.

    It is clear that what has happened here is that rm removed the contents
    of the directory "./" and then attempted to use rmdir() to remove the
    directory itself, which failed. The standard is clear that the contents
    of the directory must not be removed ("rm shall write a diagnostic
    message to standard error and do nothing more with such operands").
    Removal of the directory contents is data loss and can not be
    considered a minor fault.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority