Your message dated Sat, 9 Jul 2011 09:27:37 +0200
with message-id <[email protected]>
and subject line Bug #428444: Fixed upstream and in Debian
has caused the Debian Bug report #428444,
regarding rmdir -p ./foo literally tries to rmdir .
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
428444: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428444
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 5.97-5.3
Severity: normal
File: /bin/rmdir

joey@kodama:~>mkdir foo
joey@kodama:~>rmdir -p ./foo
rmdir: .: Invalid argument
zsh: exit 1     rmdir -p ./foo

Since "." is never a valid argument to rmdir(), why does rmdir try to do that?

Consider a script that gets input from the user about what directory to act
on, and wants to rmdir it at the end. The current behavior of rmdir forces
each such script to check the user's input to avoid calling rmdir with a
path name starting with "./". I think it would be better for rmdir -p to
simply ignore the "./" and not try to literally rmdir(".") in this case.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.42-1   Access control list shared library
ii  libc6                         2.5-10     GNU C Library: Shared libraries
ii  libselinux1                   2.0.15-2   SELinux shared libraries

coreutils recommends no packages.

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 6.10-1

This bug [1] has been fixed upstream [2] since version 6.9.89, and hence
in Debian since version 6.10-1.

[1] http://bugs.debian.org/428444
[2] 
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=85c3924ce53c867507e55319cc44c6ffcd847428

-- 
BenoƮt Knecht


--- End Message ---

Reply via email to