From 0bf3d4d0f2c1e82e4eee7ae20e2fd17b6c03d3f8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 2 Feb 2011 16:26:10 +0300 Subject: [PATCH] Fix build on FreeBSD. --- lib/librspamdclient.c | 6 +++--- 1 file 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)); -- 2.39.5