[file-roller] rar: show the links correctly



commit dd418a2aeb9a3d9b605e5d54c4eba29f5f6dcb4e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Nov 26 23:40:38 2012 +0100

    rar: show the links correctly

 src/fr-command-rar.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-rar.c b/src/fr-command-rar.c
index a04b791..f6bd75a 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -152,8 +152,11 @@ process_line (char     *line,
 					fdata->name = _g_path_get_dir_name (fdata->full_path);
 					fdata->dir = TRUE;
 				}
-				else
+				else {
 					fdata->name = g_strdup (_g_path_get_basename (fdata->full_path));
+					if (fields[5][0] == 'l')
+						fdata->link = g_strdup (_g_path_get_basename (fdata->full_path));
+				}
 
 				fr_archive_add_file (FR_ARCHIVE (comm), fdata);
 				rar_comm->fdata = NULL;



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