From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 21 03:30:12 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B3491065678 for ; Wed, 21 Sep 2011 03:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A22528FC14 for ; Wed, 21 Sep 2011 03:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8L3UBDj043777 for ; Wed, 21 Sep 2011 03:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8L3UBuH043774; Wed, 21 Sep 2011 03:30:11 GMT (envelope-from gnats) Resent-Date: Wed, 21 Sep 2011 03:30:11 GMT Resent-Message-Id: <201109210330.p8L3UBuH043774@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mikhail T." Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5439B106564A for ; Wed, 21 Sep 2011 03:23:43 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 07C278FC0C for ; Wed, 21 Sep 2011 03:23:42 +0000 (UTC) Received: from mr16.lnh.mail.rcn.net ([207.172.157.36]) by smtp02.lnh.mail.rcn.net with ESMTP; 20 Sep 2011 23:23:42 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr16.lnh.mail.rcn.net (MOS 4.2.3-GA) with ESMTP id BHS07927; Tue, 20 Sep 2011 23:23:41 -0400 Received: from 209-6-61-133.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com (HELO narawntapu.narawntapu) ([209.6.61.133]) by smtp01.lnh.mail.rcn.net with ESMTP; 20 Sep 2011 23:23:35 -0400 Received: from narawntapu.narawntapu (localhost [127.0.0.1]) by narawntapu.narawntapu (8.14.4/8.14.4) with ESMTP id p8L3NgQn013802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Sep 2011 23:23:42 -0400 (EDT) (envelope-from mi@narawntapu.narawntapu) Received: (from mi@localhost) by narawntapu.narawntapu (8.14.4/8.14.4/Submit) id p8L3NgY6013801; Tue, 20 Sep 2011 23:23:42 -0400 (EDT) (envelope-from mi) Message-Id: <201109210323.p8L3NgY6013801@narawntapu.narawntapu> Date: Tue, 20 Sep 2011 23:23:42 -0400 (EDT) From: "Mikhail T." To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: bin/160862: mkdir(2) inconsistent in error-reporting for `/' X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Mikhail T." List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2011 03:30:12 -0000 >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@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: