bin/160862: mkdir(2) inconsistent in error-reporting for `/'

Mikhail T. mi at aldan.algebra.com
Wed Sep 21 03:30:12 UTC 2011


>Number:         160862
>Category:       bin
>Synopsis:       mkdir(2) inconsistent in error-reporting for `/'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 21 03:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail T.
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Virtual Estates, Inc.	http://sybpipe.com/
>Environment:
System: FreeBSD narawntapu 8.2-STABLE FreeBSD 8.2-STABLE #1: Tue Jul 19 02:51:24 EDT 2011 mi at narawntapu:/usr/obj/home/src/sys/POWEREDGE2900 amd64

>Description:

	When passed "/" as argument, mkdir(2) responds with EISDIR
	instead of EEXISTS. mkdir(1) prints the error to the user.

>How-To-Repeat:

	As root try:

		# mkdir /
		mkdir: /: Is a directory
		# mkdir /tmp
		mkdir: /tmp: File exists

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list