Fixed, thanks.
Regards,
Sergey
Hi Connor, Sergey,
Haven't checked the '--one-top-level' option implementation yet. I tried
what it causes in listing mode, it segfaults ATM:
| $ ./src/tar -tf test.tar --one-top-level
| Segmentation fault (core dumped)
| $ gdb --args ./src/tar -tf test.tar --one-top-level
| Reading symbols
Hi Pavel,
Thanks for noticing. Please try the attached patch. Let me know if it
works for you.
Regards,
Sergey
diff --git a/src/extract.c b/src/extract.c
index 2cc1f7b..ca25603 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -191,19 +191,6 @@ extr_init (void)
umask (newdir_umask); /*
I have fixed it in commit c86b0c21.
Regards,
Sergey
On 13/02/14 09:21 AM, Sergey Poznyakoff wrote:
I have fixed it in commit c86b0c21.
This commit causes one_top_level_dir to be the stripped archive name
even if the user wants it to be different. Here is a patch fixing this.
A separate issue I have is that for some usage patterns, it makes sense