keybase / kbfs

Keybase Filesystem (KBFS)
https://keybase.io/docs/kbfs
BSD 3-Clause "New" or "Revised" License
1.21k stars 137 forks source link

Relative paths error on MacOS #1881

Open joejacobs opened 5 years ago

joejacobs commented 5 years ago

Running the following bash commands

cd /keybase/private/user
mkdir -p a/b/c
cd a
mv b ../
cd ../b
touch ../a/d.txt
mv c ../a/

should create the following files/dirs:

Dir  /keybase/private/user/a
Dir  /keybase/private/user/a/c
File /keybase/private/user/a/d.txt
Dir  /keybase/private/user/b

This works fine on my Linux machine. But when I run it on MacOS 10.13.6, it creates the following dirs instead:

Dir /keybase/private/user/a
Dir /keybase/private/user/a/a
Dir /keybase/private/user/b

And the touch command fails with the following error:

touch: ../a/d.txt: No such file or directory
strib commented 5 years ago

Thanks for the succinct repro case, I confirmed it happens to me too. I'll open an internal ticket to track figuring this out, we'll get to it within a few days.

strib commented 5 years ago

I think I tracked this down to an osxfuse bug, and I filed this issue: https://github.com/osxfuse/osxfuse/issues/553.

There might be some strategies we can use in KBFS to get around this until it's fixed in osxfuse. I'll you posted.