[evolution] Filtering out g_chmod on windows because it makes no sense there



commit 0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34
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 da1abf1..dbd9fd0 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -2066,8 +2066,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]