diff --git a/src/app-utils/file-utils.c b/src/app-utils/file-utils.c index 791b8853e2..43463ab37c 100644 --- a/src/app-utils/file-utils.c +++ b/src/app-utils/file-utils.c @@ -91,7 +91,7 @@ gncReadFile (const char * file, char ** data) if (!filename) return 0; /* Open file: */ - fd = g_open( filename, O_RDONLY ); + fd = g_open( filename, O_RDONLY, 0 ); g_free(filename); filename = NULL; diff --git a/src/backend/file/gnc-backend-file.c b/src/backend/file/gnc-backend-file.c index c272aa86e7..fbd6f1ed3e 100644 --- a/src/backend/file/gnc-backend-file.c +++ b/src/backend/file/gnc-backend-file.c @@ -342,7 +342,7 @@ copy_file(const char *orig, const char *bkup) ssize_t count_write; ssize_t count_read; - orig_fd = g_open(orig, O_RDONLY); + orig_fd = g_open(orig, O_RDONLY, 0); if(orig_fd == -1) { return FALSE; diff --git a/src/backend/file/io-gncxml-v2.c b/src/backend/file/io-gncxml-v2.c index a007c7f3ba..dddde1e3d6 100644 --- a/src/backend/file/io-gncxml-v2.c +++ b/src/backend/file/io-gncxml-v2.c @@ -1428,7 +1428,7 @@ static gboolean is_gzipped_file(const gchar *name) { unsigned char buf[2]; - int fd = g_open(name, O_RDONLY); + int fd = g_open(name, O_RDONLY, 0); if (fd == -1) { return FALSE; diff --git a/src/backend/file/test/test-file-stuff.c b/src/backend/file/test/test-file-stuff.c index 6d6f1e33f2..392f98b233 100644 --- a/src/backend/file/test/test-file-stuff.c +++ b/src/backend/file/test/test-file-stuff.c @@ -58,8 +58,8 @@ files_compare(const gchar* f1, const gchar* f2) int fd1, fd2; int amount_read1, amount_read2; - fd1 = g_open(f1, O_RDONLY); - fd2 = g_open(f2, O_RDONLY); + fd1 = g_open(f1, O_RDONLY, 0); + fd2 = g_open(f2, O_RDONLY, 0); do { diff --git a/src/import-export/hbci/druid-hbci-initial.c b/src/import-export/hbci/druid-hbci-initial.c index 7cb34d611d..1fe9231173 100644 --- a/src/import-export/hbci/druid-hbci-initial.c +++ b/src/import-export/hbci/druid-hbci-initial.c @@ -533,7 +533,7 @@ on_aqhbci_button (GtkButton *button, if (wizard_exists) { /* Really check whether the file exists */ - int fd = g_open( wizard_path, O_RDONLY ); + int fd = g_open( wizard_path, O_RDONLY, 0 ); if ( fd == -1) wizard_exists = FALSE; else diff --git a/src/import-export/hbci/gnc-file-aqb-import.c b/src/import-export/hbci/gnc-file-aqb-import.c index 1051420fec..fc0552cb94 100644 --- a/src/import-export/hbci/gnc-file-aqb-import.c +++ b/src/import-export/hbci/gnc-file-aqb-import.c @@ -169,7 +169,7 @@ void gnc_file_aqbanking_import (const gchar *aqbanking_importername, DEBUG("Filename found: %s",selected_filename); DEBUG("Opening selected file"); - dtaus_fd = g_open(selected_filename, O_RDONLY); + dtaus_fd = g_open(selected_filename, O_RDONLY, 0); if (dtaus_fd == -1) { DEBUG("Could not open file %s", selected_filename); return;