1. 05 Jun, 2013 1 commit
    • Colin Walters's avatar
      Ensure g_file_copy() does not temporarily expose private files · 9f1a0b57
      Colin Walters authored
      Previously, g_file_copy() would (on Unix) create files with the
      default mode of 644.  For applications which might at user request
      copy arbitrary private files such as ~/.ssh or /etc/shadow, a
      world-readable copy would be temporarily exposed.
      
      This patch is suboptimal in that it *only* fixes g_file_copy()
      for the case where both source and destination are instances of
      GLocalFile on Unix.
      
      The reason for this is that the public GFile APIs for creating files
      allow very limited control over the access permissions for the created
      file; one can either say a file is "private" or not.  Fixing
      this by adding e.g. g_file_create_with_attributes() would make sense,
      except this would entail 8 new API calls for all the variants of
      _create(), _create_async(), _replace(), _replace_async(),
      _create_readwrite(), _create_readwrite_async(), _replace_readwrite(),
      _replace_readwrite_async().  That can be done as a separate patch
      later.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=699959
      9f1a0b57
  2. 09 Dec, 2011 1 commit
  3. 20 May, 2010 1 commit
    • David Zeuthen's avatar
      Bug 619142 – Build fixes · 366b3ffc
      David Zeuthen authored
       - Fix various #include issues
      
       - Change #error to #warning for the EXTERNAL authentication mechanism.
         It is not clear if this should work on Win32 at all.
      
       - Call close() before unlink() for the SHA1 keyring
      
       - Change #error to #warning so we don't forget to do
         permission checking of the .dbus-keyrings directory
      
       - Use Win32 SID for the SHA1 auth mech
      
       - Apparently we can't use word 'interface' as an identifier
      
       - Implement a _g_dbus_win32_get_user_sid() function. For now it's
         private. Don't know if it should be public somewhere. Maybe in
         a future GCredentials support for Win32? I don't know.
      
       - GFileDescriptorBased is not available on Win32. So avoid using
         it in GLocalFile stuff. Now, Win32 still uses GLocalFile + friends
         (which works with file descriptors) so expose a private function
         to get the fd for an OutputStream so things still work.
      
       - Fixup gio.symbols
      
       - Fixup tests/gdbus-peer.c so it builds
      
      With this, at least things compile and the gdbus-peer.exe test case
      passes. Which is a great start. I've tested this by cross-compiling on
      a x86_64 Fedora 13 host using mingw32 and running the code on a 32-bit
      Windows 7 box.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=619142Signed-off-by: 's avatarDavid Zeuthen <davidz@redhat.com>
      366b3ffc
  4. 15 Feb, 2010 1 commit
  5. 13 May, 2009 1 commit
  6. 02 Sep, 2008 1 commit
  7. 01 Jul, 2008 1 commit
    • Cody Russell's avatar
      Moved all relevant typedefs into these files. · 3d93bf69
      Cody Russell authored
      2008-07-01  Cody Russell  <bratsche@gnome.org>
      
              * gio/gioenums.h:
              * gio/giotypes.h:
      	Moved all relevant typedefs into these	files.
      
              * gio/*.[ch]:
      	Updated wrt added files.
      
              Split types into separate file	for easier maintainership. (#538564)
      
      
      svn path=/trunk/; revision=7127
      3d93bf69
  8. 12 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      s/parent/parent_instance/ in GObjects · ab7ff4c6
      Alexander Larsson authored
      2007-12-12  Alexander Larsson  <alexl@redhat.com>
      
              * gbufferedinputstream.h:
              * gbufferedoutputstream.h:
              * gdatainputstream.h:
              * gdataoutputstream.h:
              * gdirectorymonitor.h:
              * gfileenumerator.h:
              * gfileinputstream.h:
              * gfilemonitor.h:
              * gfileoutputstream.h:
              * gfilterinputstream.h:
              * gfilteroutputstream.h:
              * ginputstream.h:
              * glocalfileinputstream.h:
              * glocalfileoutputstream.h:
              * gmemoryinputstream.h:
              * gmemoryoutputstream.h:
              * gnativevolumemonitor.h:
              * goutputstream.h:
              * gunixinputstream.h:
              * gunixoutputstream.h:
              * gvfs.h:
              * gvolumemonitor.h:
      	s/parent/parent_instance/ in GObjects
      
      
      svn path=/trunk/; revision=6102
      ab7ff4c6
  9. 28 Nov, 2007 1 commit
    • Alexander Larsson's avatar
      Removed unnecessary file · d9594f57
      Alexander Larsson authored
      2007-11-28  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * gdriveprivate.h:
      	Removed unnecessary file
      	
              * gdesktopappinfo.[ch]:
              * gdummyfile.[ch]:
              * gfile.c:
              * glocaldirectorymonitor.[ch]:
              * glocalfile.[ch]:
              * glocalfileenumerator.[ch]:
              * glocalfileinputstream.[ch]:
              * glocalfilemonitor.[ch]:
              * glocalfileoutputstream.[ch]:
              * glocalvfs.[ch]:
              * gnativevolumemonitor.c:
              * gpollfilemonitor.[ch]:
              * gunionvolumemonitor.[ch]:
              * gunixdrive.[ch]:
              * gunixvolume.[ch]:
              * gunixvolumemonitor.[ch]:
              * gvfs.c:
              * gvolumeprivate.h:
              * inotify/ginotifydirectorymonitor.[ch]:
              * inotify/ginotifyfilemonitor.[ch]:
              * inotify/inotify-helper.c:
      	Append _ to all internal functions
      	
              * gio.symbols:
      	Add missing symbols
      	Export symbols needed for modules
      
      
      svn path=/trunk/; revision=5977
      d9594f57
  10. 26 Nov, 2007 1 commit
    • Alexander Larsson's avatar
      gio/ docs/reference/gio Merged gio-standalone into glib. · 37813437
      Alexander Larsson authored
      2007-11-26  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * configure.in:
              * gio-2.0-uninstalled.pc.in:
              * gio-2.0.pc.in: 
              * gio-unix-2.0-uninstalled.pc.in:
              * gio-unix-2.0.pc.in:
      	* gio/
      	* docs/reference/gio
      	Merged gio-standalone into glib.
      	
              * glib/glibintl.h:
              * glib/gutils.c:
      	Export glib_gettext so that gio can use it
      	Add P_ (using same domain for now)
      	Add I_ as g_intern_static_string
      
      
      svn path=/trunk/; revision=5941
      37813437