Comment 3 for bug 557025

Revision history for this message
Ryan Tandy (rtandy) wrote :

I found that this happened when the mount point was somewhere that the user had permissions to create the directory: in my case it was under /tmp, but somewhere under $HOME would have the same behaviour. The problem is that chown isn't allowed, since you aren't root; then the code tries to make the directory again (this time as root), but fails because it already exists.

A workaround is to mount the directory somewhere where only root has permissions to create directories. For myself I chose to place it under /var/run. When I have a moment I will whip up a patch that makes it remove the directory when the chown fails, and post that here for possible SRUing.