projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
828548a
)
Fix for bug 383: attempting to "tar c /" would error out because stripping
author
Rob Landley
<rob@landley.net>
Thu, 1 Sep 2005 11:36:21 +0000
(11:36 -0000)
committer
Rob Landley
<rob@landley.net>
Thu, 1 Sep 2005 11:36:21 +0000
(11:36 -0000)
trailing / turns that into an empty string.
archival/tar.c
patch
|
blob
|
history
diff --git
a/archival/tar.c
b/archival/tar.c
index cf972f41d50faa0d9608cfcc7e9a092f70521435..585f0629f32ab5f72f69bb1b3c1cff79cc96813e 100644
(file)
--- a/
archival/tar.c
+++ b/
archival/tar.c
@@
-795,7
+795,7
@@
int tar_main(int argc, char **argv)
/* TODO: This is the same as in ar, separate function ? */
while (optind < argc) {
char *filename_ptr = last_char_is(argv[optind], '/');
- if (filename_ptr) {
+ if (filename_ptr
> argv[optind]
) {
*filename_ptr = '\0';
}
tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]);