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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2677 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 2677.


Report 2677 Actions


    Problem Report Number 2677
    Submitter's Classification Minor System Fault
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0694
    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 6
    Specification Shell and Utilities Issue 6
    Location in Spec Assertion 6 in section 4.53.2 of standard P1003.3.2/D8
    Problem Summary A command "rm -r <path>" where path ends with a trailing "/../" does not fail as expected.
    Problem Text If you execute the sequence of commands:

    cd /path/to/some/empty/directory
    touch flagrm006.tmp
    mkdir -p dirrm006.tmp/subdir
    rm -r dirrm006.tmp/subdir/../ flagrm006.tmp

    the command should fail and exit with non-zero status. In our implementation it queries the user
    interactively and the exit status depends on the reply.
    Test Output Assertion #6 (A): rm with a pathname whose last component is dot-dot
    Expected exit code != 0; Received 0
    Command failed: 'cd dirrm006.tmp/subdir'

    Review Information

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

    The test output shows two errors. One is the incorrect exit code, which
    the submitter has addressed. The other is the failure of the command
    "cd dirrm006.tmp/subdir", which the submitter does not mention. This
    shows that the subdir directory was removed by rm when it should not
    have been. This is data loss and can not be considered a minor fault.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority