[gimp/gimpmetadata-new-wip] plug-ins: fix file mode attribute
- From: Hartmut Kuhse <hartmutkuhse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimpmetadata-new-wip] plug-ins: fix file mode attribute
- Date: Thu, 5 Jan 2017 20:29:37 +0000 (UTC)
commit faaf2ab79b041b48121e70b15b0af6f73e267b7e
Author: Hartmut Kuhse <hk_priv gmx de>
Date: Thu Jan 5 21:29:12 2017 +0100
plug-ins: fix file mode attribute
plug-ins/common/attributes.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/attributes.c b/plug-ins/common/attributes.c
index fc707af..9be4afe 100644
--- a/plug-ins/common/attributes.c
+++ b/plug-ins/common/attributes.c
@@ -890,7 +890,11 @@ attributes_export_dialog_response (GtkWidget *dlg,
buffer = g_string_new (xmp_data);
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dlg));
- fd = g_open (filename, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0666);
+#ifdef G_OS_WIN32
+ fd = g_open (filename, O_CREAT | O_TRUNC | O_WRONLY | _O_BINARY, 0666);
+#else
+ fd = g_open (filename, O_CREAT | O_TRUNC | O_WRONLY, 0666);
+#endif
if (fd < 0)
{
attributes_message_dialog (GTK_MESSAGE_ERROR, GTK_WINDOW (dlg),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]