List full path instead of relative path if prefix is specified (this was supposed...
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 24 Sep 2001 18:34:06 +0000 (18:34 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 24 Sep 2001 18:34:06 +0000 (18:34 -0000)
libbb/unarchive.c

index 4d47eff0eb76fec99584eafe07cea23c5ba3ef1d..7b85243b1ab3cffd18235d474fcbe1199dac990e 100644 (file)
@@ -218,7 +218,7 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f
        }
        if ((function & extract_list) || (function & extract_verbose_list)){
                /* fputs doesnt add a trailing \n, so use fprintf */
-               fprintf(out_stream, "%s\n", file_entry->name);
+               fprintf(out_stream, "%s\n", full_name);
        }
 
        free(full_name);