Bug 693477 - busybox dirname violates POSIX
Summary: busybox dirname violates POSIX
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: busybox
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Denys Vlasenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-04 19:09 UTC by Eric Blake
Modified: 2012-01-04 15:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-04 15:40:05 UTC
Type: ---


Attachments (Terms of Use)

Description Eric Blake 2011-04-04 19:09:59 UTC
Description of problem:
POSIX requires that any utility that takes operands must accept and ignore -- as the first argument, to allow for alternate implementations that support options (unless explicitly documented otherwise, such as 'echo').

dirname is not explicitly documented otherwise; therefore, 'dirname a' and 'dirname -- a' are required by POSIX to behave identically.

Version-Release number of selected component (if applicable):
busybox-1.15.1-7.fc14.x86_64

How reproducible:
100%

Steps to Reproduce:
1. busybox dirname -- a
2. echo $?
  
Actual results:
BusyBox v1.15.1 (2010-05-05 10:58:54 UTC) multi-call binary

Usage: dirname FILENAME

Strip non-directory suffix from FILENAME
1

Expected results:
.
0

Additional info:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8420

Comment 1 Denys Vlasenko 2011-07-20 12:31:47 UTC
This is fixed in upstream.

I guess it's time to release 1.19.0...

Comment 2 Denys Vlasenko 2011-11-01 12:42:57 UTC
1.19.3 is in rawhide now:

http://koji.fedoraproject.org/koji/buildinfo?buildID=271674

and it addresses this BZ


Note You need to log in before you can comment on or make changes to this bug.