Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0000653 [1003.1(2008)/Issue 7] Base Definitions and Headers Objection Clarification Requested 2013-02-06 12:38 2013-02-28 17:07
Reporter geoffclare View Status public  
Assigned To ajosey
Priority normal Resolution Accepted As Marked  
Status Resolved  
Name Geoff Clare
Organization The Open Group
User Reference
Section 3.40
Page Number 39
Line Number 1274
Interp Status ---
Final Accepted Text See Note: 0001480
Summary 0000653: incomplete definition of basename
Description The definition of basename in XBD 3.40 is incomplete, as it does
not take account of pathnames consisting of all slashes. This is
because such pathnames do not contain any filenames (according to
the definition of filename).

The suggested change below matches the behaviour of basename()
described in 0000612.
Desired Action Change:

    The final, or only, filename in a pathname.

to:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters, the basename of the pathname is '/' if the
    pathname does not contain exactly two <slash> characters and is
    either '/' or "//" if the pathname contains exactly two <slash>
    characters.
Tags tc2-2008
Attached Files

- Relationships
related to 0000612Resolvedajosey dirname of "usr/" or "/" are not clear 

-  Notes
(0001456)
user27
2013-02-06 18:36

I'd suggest wording it this way:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters: either "/" or "//" if the pathname consists of
    exactly two <slash> characters, and "/" otherwise.
(0001480)
nick (manager)
2013-02-28 17:06

Change:

    The final, or only, filename in a pathname.

to:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters: either "/" or "//" if the pathname consists of
    exactly two <slash> characters, and "/" otherwise.

- Issue History
Date Modified Username Field Change
2013-02-06 12:38 geoffclare New Issue
2013-02-06 12:38 geoffclare Status New => Under Review
2013-02-06 12:38 geoffclare Assigned To => ajosey
2013-02-06 12:38 geoffclare Name => Geoff Clare
2013-02-06 12:38 geoffclare Organization => The Open Group
2013-02-06 12:38 geoffclare Section => 3.40
2013-02-06 12:38 geoffclare Page Number => 39
2013-02-06 12:38 geoffclare Line Number => 1274
2013-02-06 12:38 geoffclare Interp Status => ---
2013-02-06 12:38 geoffclare Relationship added related to 0000612
2013-02-06 18:36 user27 Note Added: 0001456
2013-02-28 17:06 nick Note Added: 0001480
2013-02-28 17:06 nick Status Under Review => Resolution Proposed
2013-02-28 17:06 nick Resolution Open => Accepted As Marked
2013-02-28 17:06 nick Tag Attached: tc2-2008
2013-02-28 17:06 nick Final Accepted Text => See Note: 0001480
2013-02-28 17:07 nick Status Resolution Proposed => Resolved


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker