NetBSD Problem Report #48182

From wiz@yt.nih.at  Wed Sep  4 20:17:40 2013
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7AA2B710D5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  4 Sep 2013 20:17:40 +0000 (UTC)
Message-Id: <20130904201733.039B72AC0D8@yt.nih.at>
Date: Wed,  4 Sep 2013 22:17:33 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: rmdir -p doesn't handle top-level directories well
X-Send-Pr-Version: 3.95

>Number:         48182
>Category:       bin
>Synopsis:       rmdir -p doesn't handle top-level directories well
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 20:20:00 +0000 2013
>Closed-Date:    Sat Aug 19 19:20:06 +0000 2017
>Last-Modified:  Sat Aug 19 19:20:06 +0000 2017
>Originator:     Thomas Klausner
>Release:        NetBSD 6.99.23
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


System: NetBSD yt.nih.at 6.99.23 NetBSD 6.99.23 (KVOTHE) #4: Tue Sep 3 20:41:53 CEST 2013 wiz@yt.nih.at:/archive/foreign/src/sys/arch/amd64/compile/obj/KVOTHE amd64
Architecture: x86_64
Machine: amd64
>Description:

# mkdir /a
# rmdir -p /a
rmdir: : No such file or directory
>How-To-Repeat:
See above.
>Fix:
Probably easy, but wanted to document it first while I still remember it.

>Release-Note:

>Audit-Trail:
From: "Brian Ginsbach" <ginsbach@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48182 CVS commit: src/bin/rmdir
Date: Thu, 10 Aug 2017 22:52:13 +0000

 Module Name:	src
 Committed By:	ginsbach
 Date:		Thu Aug 10 22:52:13 UTC 2017

 Modified Files:
 	src/bin/rmdir: rmdir.c

 Log Message:
 PR/48182: Fix rmdir -p handling of top-level (root) directory.
 XXX: pullup-8
 XXX: pullup-7
 XXX: pullup-6


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.27 src/bin/rmdir/rmdir.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: ginsbach@NetBSD.org
State-Changed-When: Thu, 10 Aug 2017 23:12:01 +0000
State-Changed-Why:
Fix committed. Waiting feedback. Hi wiz!


State-Changed-From-To: feedback->pending-pullups
State-Changed-By: ginsbach@NetBSD.org
State-Changed-When: Sat, 12 Aug 2017 01:15:23 +0000
State-Changed-Why:
Pullups requested for NetBSD 6, 7, & 8


From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/48182 CVS commit: src/bin/rmdir
Date: Sun, 13 Aug 2017 20:21:50 +0200

 On Thu, Aug 10, 2017 at 11:05:00PM +0000, Brian Ginsbach wrote:
 >  PR/48182: Fix rmdir -p handling of top-level (root) directory.

 I'm happy with the fix, thank you!
  Thomas

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48182 CVS commit: [netbsd-8] src/bin/rmdir
Date: Mon, 14 Aug 2017 23:54:30 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Mon Aug 14 23:54:30 UTC 2017

 Modified Files:
 	src/bin/rmdir [netbsd-8]: rmdir.c

 Log Message:
 Pull up following revision(s) (requested by ginsbach in ticket #208):
 	bin/rmdir/rmdir.c: revision 1.27
 PR/48182: Fix rmdir -p handling of top-level (root) directory.


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.26.36.1 src/bin/rmdir/rmdir.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->feedback
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Thu, 17 Aug 2017 19:01:30 +0000
State-Changed-Why:
This was pulled up to netbsd-8. Do you think it should be applied
to older releases too still?


State-Changed-From-To: feedback->pending-pullups
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Thu, 17 Aug 2017 19:09:49 +0000
State-Changed-Why:
Okay okay.


From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/48182 (rmdir -p doesn't handle top-level directories well)
Date: Fri, 18 Aug 2017 09:38:47 +0200

 On Thu, Aug 17, 2017 at 07:01:30PM +0000, jdolecek@NetBSD.org wrote:
 > Synopsis: rmdir -p doesn't handle top-level directories well
 > 
 > State-Changed-From-To: pending-pullups->feedback
 > State-Changed-By: jdolecek@NetBSD.org
 > State-Changed-When: Thu, 17 Aug 2017 19:01:30 +0000
 > State-Changed-Why:
 > This was pulled up to netbsd-8. Do you think it should be applied
 > to older releases too still?

 netbsd-8: Good enough for me, thank you.
  Thomas

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48182 CVS commit: [netbsd-7] src/bin/rmdir
Date: Sat, 19 Aug 2017 05:23:16 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Sat Aug 19 05:23:16 UTC 2017

 Modified Files:
 	src/bin/rmdir [netbsd-7]: rmdir.c

 Log Message:
 Pull up following revision(s) (requested by ginsbach in ticket #1488):
 	bin/rmdir/rmdir.c: revision 1.27
 PR/48182: Fix rmdir -p handling of top-level (root) directory.


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.26.22.1 src/bin/rmdir/rmdir.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48182 CVS commit: [netbsd-6] src/bin/rmdir
Date: Sat, 19 Aug 2017 05:25:28 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Sat Aug 19 05:25:27 UTC 2017

 Modified Files:
 	src/bin/rmdir [netbsd-6]: rmdir.c

 Log Message:
 Pull up following revision(s) (requested by ginsbach in ticket #1490):
 	bin/rmdir/rmdir.c: revision 1.27
 PR/48182: Fix rmdir -p handling of top-level (root) directory.


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.26.4.1 src/bin/rmdir/rmdir.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: ginsbach@NetBSD.org
State-Changed-When: Sat, 19 Aug 2017 19:20:06 +0000
State-Changed-Why:
All pullups complete.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.