aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorFridrich Strba <fridrich.strba@bluewin.ch>2010-03-03 00:35:18 +0800
committerFridrich Strba <fridrich.strba@bluewin.ch>2010-03-03 00:40:04 +0800
commit0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34 (patch)
tree1a68b9ceba868863a8de1a1e6988591aca4dc3ec /widgets
parentac51ca802e9bc11ac9f6de44690a9a536a9c8da0 (diff)
downloadgsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar.gz
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar.bz2
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar.lz
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar.xz
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.tar.zst
gsoc2013-evolution-0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34.zip
Filtering out g_chmod on windows because it makes no sense there
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-attachment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index da1abf15f2..dbd9fd04a2 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);