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

Mikhail T. mi at
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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 21 03:30:11 UTC 2011
>Originator:     Mikhail T.
>Release:        FreeBSD 8.2-STABLE amd64
Virtual Estates, Inc.
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


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


	As root try:

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


More information about the freebsd-bugs mailing list