From 0a9b740c1b9eff9bdfa89cd8ac4acc587c57df34 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 2 Mar 2010 17:35:18 +0100 Subject: Filtering out g_chmod on windows because it makes no sense there --- widgets/misc/e-attachment.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets') 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); -- cgit v1.2.3