From: Vsevolod Stakhov Date: Wed, 2 Feb 2011 13:26:10 +0000 (+0300) Subject: Fix build on FreeBSD. X-Git-Tag: 0.3.7~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bf3d4d0f2c1e82e4eee7ae20e2fd17b6c03d3f8;p=rspamd.git Fix build on FreeBSD. --- 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));