summaryrefslogtreecommitdiffstats
path: root/archivers/file-roller3/files/patch-src_fr-command-zip.c
blob: 5995813eb3b6344ca79bf57c7f77d2864b7cc9f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- src/fr-command-zip.c.orig   2010-11-16 08:32:18.000000000 +0000
+++ src/fr-command-zip.c    2011-01-20 16:55:45.000000000 +0000
@@ -186,7 +186,11 @@ fr_command_zip_list (FrCommand  *comm)
 {
    fr_process_set_out_line_func (comm->process, list__process_line, comm);
 
+#ifdef __FreeBSD__
+   fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
+#else
    fr_process_begin_command (comm->process, "unzip");
+#endif
    fr_process_set_begin_func (comm->process, list__begin, comm);
    fr_process_add_arg (comm->process, "-ZTs");
    fr_process_add_arg (comm->process, comm->filename);
@@ -301,7 +305,11 @@ fr_command_zip_extract (FrCommand  *comm
                      process_line__common,
                      comm);
 
+#ifdef __FreeBSD__
+   fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
+#else
    fr_process_begin_command (comm->process, "unzip");
+#endif
 
    if (dest_dir != NULL) {
        fr_process_add_arg (comm->process, "-d");
@@ -333,7 +341,11 @@ fr_command_zip_extract (FrCommand  *comm
 static void
 fr_command_zip_test (FrCommand   *comm)
 {
+#ifdef __FreeBSD__
+   fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
+#else
    fr_process_begin_command (comm->process, "unzip");
+#endif
    fr_process_add_arg (comm->process, "-t");
    add_password_arg (comm, comm->password);
    fr_process_add_arg (comm->process, comm->filename);