[evolution/gnome-2-28] Filtering out g_chmod on windows because it makes no sense there
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-28] Filtering out g_chmod on windows because it makes no sense there
- Date: Tue, 2 Mar 2010 16:36:26 +0000 (UTC)
commit 7177f64456c481a3914415c56b6485698fb6279c
Author: Fridrich Strba <fridrich strba bluewin ch>
Date: Tue Mar 2 17:35:18 2010 +0100
Filtering out g_chmod on windows because it makes no sense there
widgets/misc/e-attachment.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index 87fc8b2..3da5adc 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -2075,8 +2075,10 @@ attachment_open_save_finished_cb (EAttachment *attachment,
* which is obviously not portable.
*/
path = g_file_get_path (file);
+#ifndef G_OS_WIN32
if (g_chmod (path, S_IRUSR | S_IRGRP | S_IROTH) < 0)
g_warning ("%s", g_strerror (errno));
+#endif
g_free (path);
attachment_open_file (file, open_context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]