__open_directory_sync can sync the wrong directory if the application
specifies an absolute path name.  Close #801.
error: assignment discards 'const' qualifier from pointer target