public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/glib/files: glib-2.18.1-gdesktopappinfo-memleak-fix.patch glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch
@ 2008-09-25  9:40 Mart Raudsepp (leio)
  0 siblings, 0 replies; only message in thread
From: Mart Raudsepp (leio) @ 2008-09-25  9:40 UTC (permalink / raw
  To: gentoo-commits

leio        08/09/25 09:40:07

  Added:                glib-2.18.1-gdesktopappinfo-memleak-fix.patch
                        glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch
  Log:
  Major version bump. Supports latest version of shared-mime spec, emblems on icons, subparsers in GMarkup, and more
  (Portage version: 2.2_rc9/cvs/Linux 2.6.26-gentoo-r1 x86_64)

Revision  Changes    Path
1.1                  dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch?rev=1.1&content-type=text/plain

Index: glib-2.18.1-gdesktopappinfo-memleak-fix.patch
===================================================================
2008-09-20  Matthias Clasen

* gdesktopappinfo.c (expand_macro_single): Plug a memory leak

--- branches/glib-2-18/gio/gdesktopappinfo.c	2008/09/21 00:00:18	7520
+++ branches/glib-2-18/gio/gdesktopappinfo.c	2008/09/21 00:04:37	7521
@@ -480,7 +480,7 @@
 {
   GFile *file;
   char *result = NULL;
-  char *path;
+  char *path, *name;
 
   file = g_file_new_for_uri (uri);
   path = g_file_get_path (file);
@@ -500,12 +500,20 @@
     case 'd':
     case 'D':
       if (path)
-	result = g_shell_quote (g_path_get_dirname (path));
+        {
+          name = g_path_get_dirname (path);
+	  result = g_shell_quote (name);
+          g_free (name);
+        }
       break;
     case 'n':
     case 'N':
       if (path)
-	result = g_shell_quote (g_path_get_basename (path));
+        {
+          name = g_path_get_basename (path);
+	  result = g_shell_quote (name);
+          g_free (name);
+        }
       break;
     }
 



1.1                  dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch?rev=1.1&content-type=text/plain

Index: glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch
===================================================================
Temporary workaround for gio tests failure when ran without FEATURES=userpriv
until upstream bug #552912 is fixed

--- gio/tests/live-g-file.c.orig	2008-09-25 05:44:12.848556034 +0300
+++ gio/tests/live-g-file.c	2008-09-25 06:12:34.248726237 +0300
@@ -769,11 +769,14 @@
 	      if (posix_compat)
 		{
 		  /*  target directory is not accessible (no execute flag)  */
+#if 0
+/* Fails when ran as root */
 		  do_copy_move (root, item, TEST_DIR_NO_ACCESS,
 				TEST_NO_ACCESS);
 		  /*  target directory is readonly  */
 		  do_copy_move (root, item, TEST_DIR_NO_WRITE,
 				TEST_NO_ACCESS);
+#endif
 		}
 	    }
 	}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-25  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25  9:40 [gentoo-commits] gentoo-x86 commit in dev-libs/glib/files: glib-2.18.1-gdesktopappinfo-memleak-fix.patch glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch Mart Raudsepp (leio)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox