2009-01-17 [colin] 3.7.0cvs38
[claws.git] / src / mbox.c
index f80c039c545d5b87f8527f61127791dbd0c3c725..d339e4f27d9b4d4558f928910317a6913bd17c7d 100644 (file)
@@ -358,9 +358,9 @@ gint lock_mbox(const gchar *base, LockType type)
 #endif
 
 #if HAVE_FLOCK
-               if ((lockfd = g_open(base, O_RDWR)) < 0) {
+               if ((lockfd = g_open(base, O_RDWR, 0)) < 0) {
 #else
-               if ((lockfd = g_open(base, O_RDWR)) < 0) {
+               if ((lockfd = g_open(base, O_RDWR, 0)) < 0) {
 #endif
                        FILE_OP_ERROR(base, "open");
                        return -1;