Subject: bug#27959: 26.0.50; File renaming fails on sshfs

From: Philipp Stephani <[email-masked]>
Date: Sat, 05 Aug 2017 08:24:41 +0000

Lars Ingebrigtsen <[email-masked]> schrieb am Fr., 4. Aug. 2017 um
23:39 Uhr:

>
> /tv is mounted via sshfs.
>
> (rename-file "/tv/a.foo" "/tv/b.foo")
>
> Debugger entered--Lisp error: (file-error "Renaming" "Invalid argument"
> "/tv/a.foo" "/tv/b.foo")
>   rename-file("/tv/a.foo" "/tv/b.foo")
>   eval((rename-file "/tv/a.foo" "/tv/b.foo") nil)
>   eval-expression((rename-file "/tv/a.foo" "/tv/b.foo") nil nil 127)
>   funcall-interactively(eval-expression (rename-file "/tv/a.foo"
> "/tv/b.foo") nil nil 127)
>   call-interactively(eval-expression nil nil)
>   command-execute(eval-expression)
>
> But if I say
>
> larsi@amy:~$ mv /tv/a.foo /tv/b.foo
>
> on the same machine, it works fine.  So ... where is the "Invalid
> argument" coming from?
>

Probably more fallout of 1f9f514e7c2ba41b0954d0141f99652f6a53a107. Does it
work if you compile without that commit (e.g. git reset --hard
1f9f514e7c2ba41b0954d0141f99652f6a53a107^ from a clean working directory)?