Sublime Forum

Save failed: Invalid cross-device link

#1

I’ve found a condition under which saving to a file failes.

My O/S is Ubuntu 14.04/64, and ST b3059, currently registered with a ST 2 license.
I have a single hard disk; I’m running the test case as ‘myuser’ user, whose home (/home/myuser) is encrypted.
There is another user’s home, ‘/home/shared’, for which myuser has write permissions.

I create the file /home/shared/test.txt. Then go to /home/myuser/Desktop, and symlink it (ln -s /home/shared/test.txt).

I can open it and write to it with with vim.

I can open it with ST, but when I try writing to it, I get the error “Unable to save ~/Desktop/test.txt
Error: rename(/home/myuser/Desktop/.sublc52.tmp, /home/shared/test.txt) failed: Invalid cross-device link”.

Since vim can write to it, I assume it’s not a permissions problem.
I can reproduce it every time.

0 Likes