Pádraig Brady <[email protected]> writes:

> You can repro this with:
>
>   $ mkdir d
>   $ touch src d/file d/file.~1~
>   $ chmod a-r d
>   $ timeout 1 cp --backup=numbered src d/file || echo would hang
>
> * lib/backupfile.c (backupfile_internal): Don't retry
> with the same guess if we weren't able to open the directory.
> ---
>  ChangeLog        | 6 ++++++
>  lib/backupfile.c | 2 +-
>  2 files changed, 7 insertions(+), 1 deletion(-)

Nice catch.

Collin

Reply via email to