open() can take a 3rd argument
Brought to you by:
swift-tools
I've been using flashcam with firefox 3.0.1. It works well, but whenever firefox crashes, all the bookmarks have vanished when I come to restart it.
I traced this down to the places.sqlite-journal file in my profile being created with 000 file permissions if flashcam is being used.
Looking at the source of flashcamhook.c I see that the 'mode' argument to the open syscall is never being provided.
The attached patch fixed the problem for me.
patch to fix file creation permissions