gthumb r2498 - in trunk: . libgthumb



Author: mjc
Date: Fri Jan 23 12:45:11 2009
New Revision: 2498
URL: http://svn.gnome.org/viewvc/gthumb?rev=2498&view=rev

Log:
2009-01-23  Michael J. Chudobiak  <mjc svn gnome org>

        * libgthumb/gfile-utils.c: (gfile_xfer):
        Use G_FILE_COPY_TARGET_DEFAULT_PERMS (if glib >= 2.19.0)
        so that copied/moved files receive the default permissions
        for the user (respecting the umask and any directory setgid bits)
        rather than trying to copy the old permissions.



Modified:
   trunk/ChangeLog
   trunk/libgthumb/gfile-utils.c

Modified: trunk/libgthumb/gfile-utils.c
==============================================================================
--- trunk/libgthumb/gfile-utils.c	(original)
+++ trunk/libgthumb/gfile-utils.c	Fri Jan 23 12:45:11 2009
@@ -767,11 +767,17 @@
 
         if (move)
                 g_file_move (sfile, dfile,
+#if GLIB_CHECK_VERSION(2,19,0)
+			     G_FILE_COPY_TARGET_DEFAULT_PERMS |
+#endif 
                              G_FILE_COPY_OVERWRITE,
                              NULL, _empty_file_progress_cb,
                              NULL, &error);
         else
                 g_file_copy (sfile, dfile,
+#if GLIB_CHECK_VERSION(2,19,0)
+                             G_FILE_COPY_TARGET_DEFAULT_PERMS |
+#endif 
                              G_FILE_COPY_OVERWRITE,
                              NULL, _empty_file_progress_cb,
                              NULL, &error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]