When I try to mount a gocryptfs volume and the $PATH environment variable includes the mount point (or a subdirectory of it), then the gocryptfs process hangs and the mount does not complete and other processes that try to access it also hang. This can be reproduced by running the following:
mkdir /tmp/test{.enc,}
gocryptfs -extpass 'echo test' -init /tmp/test.enc
PATH=/tmp/test:"$PATH" gocryptfs -extpass 'echo test' /tmp/test{.enc,}
gocrypfs will remain in the foreground. Then on a different terminal run:
and ls will also hang.