bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mv symlink-to-dir/, debian bug feed


From: Jim Meyering
Subject: Re: mv symlink-to-dir/, debian bug feed
Date: Sat, 26 Jan 2008 23:36:47 +0100

Eric Blake <address@hidden> wrote:
> I've noticed that Jim just committed a patch based on a bug originally
> reported through the debian tracker without any additional mention here:
>
> http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=c0c8685
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343652

BTW, my first reflex was to write a rename wrapper.
Unfortunately, with that you have to choose between
a racy implementation and an imperfect openat/renameat-based one
(imperfect because openat fails when the parent dir isn't readable).
Well, there is one other choice: always strip trailing slashes on SRC,
but imho, penalizing every rename sycall under Linux is not an option,
especially when I prefer the Linux rename syscall semantics.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]