bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug#52410: "mv -T --backup=numbered hello world/" renameat2 infinite


From: Paul Eggert
Subject: Re: bug#52410: "mv -T --backup=numbered hello world/" renameat2 infinite loop
Date: Fri, 10 Dec 2021 14:15:02 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

On 12/10/21 02:22, Vincent Vermilya wrote:
If DEST directory has a trailing slash in "mv -T --backup=numbered", mv
gets stuck in an infinite loop. This does not happen without the trailing
slash. strace shows renameat2 as the call that gets looped on.

Thanks for the bug report. This is due to a Gnulib bug, so I'm cc'ing bug-gnulib.

I installed the first three attached patches into Gnulib. The first one should fix the bug there, and the other two are refactoring cleanups.

I installed the last two attached patches into coreutils to propagate this fix into coreutils and add a regression test.

Attachment: 0001-backupfile-fix-numbered-backups-for-XXX.patch
Description: Text Data

Attachment: 0002-backupfile-prefer-signed-integers.patch
Description: Text Data

Attachment: 0003-backupfile-assume-C99-decls.patch
Description: Text Data

Attachment: 0001-build-update-gnulib-submodule-to-latest.patch
Description: Text Data

Attachment: 0002-mv-Bug-52410-fix.patch
Description: Text Data


reply via email to

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