aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:26:10 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:26:10 +0300
commit0bf3d4d0f2c1e82e4eee7ae20e2fd17b6c03d3f8 (patch)
tree5c04e67748017f58a4204576291062ee0f5f385f /lib
parente7032003419b8575e211fb9bb4740c1d37736f51 (diff)
downloadrspamd-0bf3d4d0f2c1e82e4eee7ae20e2fd17b6c03d3f8.tar.gz
rspamd-0bf3d4d0f2c1e82e4eee7ae20e2fd17b6c03d3f8.zip
Fix build on FreeBSD.
Diffstat (limited to 'lib')
-rw-r--r--lib/librspamdclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librspamdclient.c b/lib/librspamdclient.c
index 0b32e853d..6c090c57a 100644
--- a/lib/librspamdclient.c
+++ b/lib/librspamdclient.c
@@ -1114,7 +1114,7 @@ rspamd_scan_file (const guchar *filename, GHashTable *headers, GError **err)
g_assert (client != NULL);
/* Open file */
- if ((fd = open (filename, O_RDONLY | O_CLOEXEC)) == -1) {
+ if ((fd = open (filename, O_RDONLY)) == -1) {
if (*err == NULL) {
*err = g_error_new (G_RSPAMD_ERROR, errno, "Open error for file %s: %s",
filename, strerror (errno));
@@ -1245,7 +1245,7 @@ rspamd_learn_file (const guchar *filename, const gchar *symbol, const gchar *pas
g_assert (client != NULL);
/* Open file */
- if ((fd = open (filename, O_RDONLY | O_CLOEXEC)) == -1) {
+ if ((fd = open (filename, O_RDONLY)) == -1) {
if (*err == NULL) {
*err = g_error_new (G_RSPAMD_ERROR, errno, "Open error for file %s: %s",
filename, strerror (errno));
@@ -1397,7 +1397,7 @@ rspamd_fuzzy_file (const guchar *filename, const gchar *password, gint weight, g
g_assert (client != NULL);
/* Open file */
- if ((fd = open (filename, O_RDONLY | O_CLOEXEC)) == -1) {
+ if ((fd = open (filename, O_RDONLY)) == -1) {
if (*err == NULL) {
*err = g_error_new (G_RSPAMD_ERROR, errno, "Open error for file %s: %s",
filename, strerror (errno));