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