GNU bug report logs - #78509
Coreutils' mv and cp 9.5 do not work properly on old PPC Mac OS X 10.4.11, Tiger

Previous Next

Package: coreutils;

Reported by: Peter Dyballa <Peter_Dyballa <at> Web.DE>

Date: Tue, 20 May 2025 16:13:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Full log


Message #71 received at 78509 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Peter Dyballa <Peter_Dyballa <at> Web.DE>
Cc: 78509 <at> debbugs.gnu.org
Subject: Re: bug#78509: Coreutils' mv and cp 9.5 do not work properly on old
 PPC Mac OS X 10.4.11, Tiger
Date: Sat, 24 May 2025 00:44:09 -0700
On 2025-05-23 04:27, Peter Dyballa wrote:
>      458         {
>      459           int fd = target_directory_operand (lastfile, &sb);
>      460           if (target_dirfd_valid (fd))
>      461             {
>      462               x.rename_errno = -1;
>      463               target_dirfd = fd;
>      464               target_directory = lastfile;
>      465               n_files--;
>      466             }
>      467           else
>      468             {
>      ...
>      484             }
>      485         }
> 
> Here x.rename_errno is (re)set to -1 although already != 0,

If this is "mv k out" where "out" is not a directory, then you're 
closing in on the bug. target_directory_operand is supposed to fail 
(i.e., return a value for which target_dirfd_valid is false) if LASTFILE 
is not a directory, and LASTFILE is "out" here.




This bug report was last modified 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.