summaryrefslogtreecommitdiff
path: root/src/eom-jobs.c
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2015-06-11 19:23:45 +0100
committerMartin Wimpress <[email protected]>2015-06-11 19:23:45 +0100
commit5ec3603d3609c984ec9ff4bb9b714e067f16f5f2 (patch)
tree8d82edfadad1b6ee671239acef9a9169cc6468cb /src/eom-jobs.c
parente556b69e2cf83b559aff32a7bbc1942b6838cf69 (diff)
parent251d80191df6a2bcd81f1aa67da6e261ef41610d (diff)
downloadeom-5ec3603d3609c984ec9ff4bb9b714e067f16f5f2.tar.bz2
eom-5ec3603d3609c984ec9ff4bb9b714e067f16f5f2.tar.xz
Merge pull request #75 from monsta/keep-permissions
don't change file permissions when saving the modified image
Diffstat (limited to 'src/eom-jobs.c')
-rw-r--r--src/eom-jobs.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/eom-jobs.c b/src/eom-jobs.c
index df5c714..1974ee4 100644
--- a/src/eom-jobs.c
+++ b/src/eom-jobs.c
@@ -708,9 +708,6 @@ eom_job_save_as_run (EomJob *ejob)
EomJobSaveAs *saveas_job;
GList *it;
guint n_images;
- guint file_permissions = 00000;
- guint permissions_mask = 00600;
- GFileInfo *info;
g_return_if_fail (EOM_IS_JOB_SAVE_AS (ejob));
@@ -796,26 +793,6 @@ eom_job_save_as_run (EomJob *ejob)
dest_info,
&ejob->error);
- /* get file permissions */
- info = g_file_query_info (saveas_job->file,
- G_FILE_ATTRIBUTE_UNIX_MODE,
- G_FILE_QUERY_INFO_NONE,
- NULL,
- NULL);
-
- file_permissions = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE);
-
- /* apply permission mask to file permissions */
- file_permissions |= permissions_mask;
-
- g_file_set_attribute_uint32 (saveas_job->file,
- G_FILE_ATTRIBUTE_UNIX_MODE,
- file_permissions,
- G_FILE_QUERY_INFO_NONE,
- NULL,
- NULL);
-
- g_object_unref (info);
if (src_info)
g_object_unref (src_info);