bug#19051: rm symboliclink/ # Is a directory

2014-11-14 Thread Pádraig Brady
tag 19051 notabug close 19501 stop On 14/11/14 06:53, aaron brick wrote: hi folks, $ ln -s / sl $ rm sl/ rm: cannot remove `sl/': Is a directory $ rm sl $ the presence of the slash is not such a great way to test for whether or not a file is a directory. you may find the above example

bug#19051: rm symboliclink/ # Is a directory

2014-11-14 Thread Eric Blake
On 11/14/2014 04:41 AM, Pádraig Brady wrote: tag 19051 notabug close 19501 stop On 14/11/14 06:53, aaron brick wrote: hi folks, $ ln -s / sl $ rm sl/ rm: cannot remove `sl/': Is a directory $ rm sl $ Confused me too when I encountered it first, but tt's required by POSIX:

bug#19051: rm symboliclink/ # Is a directory

2014-11-14 Thread Eric Blake
On 11/14/2014 06:15 AM, Eric Blake wrote: Confused me too when I encountered it first, but tt's required by POSIX: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 No, actually, POSIX requires that it (attempt to) remove the DIRECTORY, not the symlink.

bug#19051: rm symboliclink/ # Is a directory

2014-11-14 Thread aaron brick
thanks for your time and comments folks! On Fri, Nov 14, 2014 at 6:47 AM, Eric Blake ebl...@redhat.com wrote: On 11/14/2014 06:15 AM, Eric Blake wrote: Confused me too when I encountered it first, but tt's required by POSIX:

bug#18499: Possible mv race for hardlinks (rhbz #1141368 )

2014-11-14 Thread Pádraig Brady
On 13/11/14 16:06, Boris Ranto wrote: On Thu, 2014-11-13 at 15:41 +, Pádraig Brady wrote: On 13/11/14 13:58, Boris Ranto wrote: On Wed, 2014-09-24 at 17:18 +0100, Pádraig Brady wrote: On 09/18/2014 11:52 AM, Ondrej Vasik wrote: Hi, as reported in