summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index f1a89ce..27deafa 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -241,8 +241,10 @@ begin_tar_command (FrCommand *comm)
command = g_find_program_in_path ("gtar");
#if defined (__SVR4) && defined (__sun)
- if (g_file_test ("/usr/sfw/bin/gtar", G_FILE_TEST_IS_EXECUTABLE))
+ if (g_file_test ("/usr/sfw/bin/gtar", G_FILE_TEST_IS_EXECUTABLE)) {
+ g_free (command);
command = g_strdup ("/usr/sfw/bin/gtar");
+ }
#endif
if (command != NULL)
fr_process_begin_command (comm->process, command);