evince r3374 - in trunk: . libdocument



Author: mjc
Date: Thu Jan 22 20:41:41 2009
New Revision: 3374
URL: http://svn.gnome.org/viewvc/evince?rev=3374&view=rev

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

        * libdocument/ev-file-helpers.c: (ev_xfer_uri_simple):
        When saving a file, using the default permissions for the user/system,
        respecting umask and any setgid bit on the directory. Uses the new
        G_FILE_COPY_TARGET_DEFAULT_PERMS flag in glib 2.19.0, if available.



Modified:
   trunk/ChangeLog
   trunk/libdocument/ev-file-helpers.c

Modified: trunk/libdocument/ev-file-helpers.c
==============================================================================
--- trunk/libdocument/ev-file-helpers.c	(original)
+++ trunk/libdocument/ev-file-helpers.c	Thu Jan 22 20:41:41 2009
@@ -221,6 +221,9 @@
 	target_file = g_file_new_for_uri (to);
 	
 	result = g_file_copy (source_file, target_file,
+#if GLIB_CHECK_VERSION(2,19,0)
+			      G_FILE_COPY_TARGET_DEFAULT_PERMS |
+#endif
 			      G_FILE_COPY_OVERWRITE,
 			      NULL, NULL, NULL, &ioerror);
 



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