Skip to content

Commit

Permalink
fix unzip param order on android's busybox
Browse files Browse the repository at this point in the history
  • Loading branch information
poliva authored and radare committed Sep 10, 2012
1 parent 6a2de12 commit 739802b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/io/p/io_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ static RIODesc *__open(RIO *io, const char *file, int rw, int mode) {
d2 = strdup (d);
d2 = r_str_concat (d2, "/");
d2 = r_str_concat (d2, p+1);
snprintf (cmd, sizeof (cmd), "unzip -o -d '%s' '%s' '%s'",
d, str, p+1);
snprintf (cmd, sizeof (cmd), "unzip -o '%s' '%s' -d '%s'",
str, p+1, d);
if (system (cmd) == 0)
r_io_redirect (io, d2);
free (d2);
Expand Down

0 comments on commit 739802b

Please sign in to comment.