brasero r1179 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1179 - in trunk: . src
- Date: Tue, 26 Aug 2008 18:21:10 +0000 (UTC)
Author: philippr
Date: Tue Aug 26 18:21:10 2008
New Revision: 1179
URL: http://svn.gnome.org/viewvc/brasero?rev=1179&view=rev
Log:
Fix for #546787 â Problem with burning symlinked files
* src/brasero-io.c (brasero_io_check_for_parent_symlink):
Modified:
trunk/ChangeLog
trunk/src/brasero-io.c
Modified: trunk/src/brasero-io.c
==============================================================================
--- trunk/src/brasero-io.c (original)
+++ trunk/src/brasero-io.c Tue Aug 26 18:21:10 2008
@@ -447,10 +447,14 @@
GCancellable *cancel)
{
GFile *parent;
+ GFile *file;
gchar *uri;
- parent = g_file_new_for_uri (escaped_uri);
- uri = g_file_get_uri (parent);
+ /* don't check if the node itself is a symlink since that'll be done */
+ file = g_file_new_for_uri (escaped_uri);
+ uri = g_file_get_uri (file);
+ parent = g_file_get_parent (file);
+ g_object_unref (file);
while (parent) {
GFile *tmp;
@@ -491,10 +495,10 @@
else
new_root = g_filename_to_uri (target_path, NULL, NULL);
- newuri = g_strconcat (new_root,
- uri + strlen (parent_uri) + 1 /* for the separator*/,
- NULL);
-
+ newuri = g_build_path (G_DIR_SEPARATOR_S,
+ new_root,
+ uri + strlen (parent_uri),
+ NULL);
g_free (uri);
uri = newuri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]