rm -r doesn't delete dotfiles in a directory (.test; #520451)

Noël Köthe <[email protected]> Sat, 31 Jul 2010 21:34:42 +0200
Newsgroups gmane.network.lftp.devel
Organization Debian GNU/Linux, www.debian.org
Message-ID <[email protected]>
--=-sNFcrNIgmWUTiyqM50W3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

I was pointed to the following problem :

When I want to delete a directory recursivly this doesn't work is there
are dotfiles in the directory:

(this is lftp 4.0.9)

lftp test@localhost:~> ls -la testdir
drwxr-xr-x   2 test     test         4096 Jul 31 18:41 .
drwxr-xr-x   3 test     test         4096 Jul 31 18:40 ..
-rw-r--r--   1 test     test            0 Jul 31 18:41 .dotfile
-rw-r--r--   1 test     test            0 Jul 31 18:40 .test
-rw-r--r--   1 test     test            0 Jul 31 18:41 testfile
lftp test@localhost:~> rm -rf testdir
---> CWD /home/test/testdir
<--- 250 CWD command successful
---> EPSV
<--- 229 Entering Extended Passive Mode (|||53714|)
---- Connecting data socket to (::1) port 53714
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> DELE testfile
<--- 250 DELE command successful
---> CWD /home/test
<--- 250 CWD command successful
---> RMD testdir
<--- 550 testdir: Das Verzeichnis ist nicht leer
rm failed for 1 of 2 files


older report: http://bugs.debian.org/520451

--=20
No=C3=ABl K=C3=B6the <noel debian.org>
Debian GNU/Linux, www.debian.org


--=-sNFcrNIgmWUTiyqM50W3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJMVHrOAAoJEGjAeL6I+AzaL88P/AyZj1I72YCbCiLbRG/LtsHG
FwrVLlZdCZAkhfQQQ4cOJ/RMVRIGl0cLbxzON3ay4+GeuOonGzp8vcESyAxcLD+Q
ePXIyhrBnaDYG6+JPxAVGFJhhF4BgsGW+CI4Fqt+Gx6nQm+W1K4Hzq2fqmwwynQf
2E/N7JhO1ix7HJUwpH4/k9G+U1rsCwL8RDkdYa8gQKG6ddLeV7mz/cyoO6HepKSP
C90UhwtxWfnBgnK6zbbTLOgzA5leRlbQAW7V2iQy8JvdbpIXXr82tFtMbHZYshVS
hXKRWFIV+9JPa8SYCu2xPQ+jxza238LWpJWZpWSQUi1jUFvBsQvGYA/UB28EVdH2
iqWPnOcahA62QFYpDOc8rc3JHMc+0okjRcun5dd4LaoaTJm2xaIbzXqINoRvCd57
TvIaQ0aJ155Im0BkfqUbFHFWM3OV2JhUiRGldMQr+/LaR6fXdqOgDXy6pUfspFN5
0C7kXyMW1QB02z87GuFD0+5++/96Z2oso7PaFLsKbcj2sRaY4Wj1Y4AW0WCPrZux
nUfzy+D43VaAX7S8MExd6qkYtMBhi4RP46+Zpjncs9X+F6xJfdvkMAHokcvPkn8E
Vdpzb9+qz6YDAslnOaOcYSXMQG8A6ZTP+deP/Ja8oDbGA44wsu62VXfOH04aQIka
M8Lwo4dtcOZHGHr+54kP
=GvuD
-----END PGP SIGNATURE-----

--=-sNFcrNIgmWUTiyqM50W3--