Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd2662
)
Fixed a bug in match_hard_links() where an empty directory would try
author
Wayne Davison
<wayned@samba.org>
Wed, 23 Jul 2008 04:34:20 +0000
(21:34 -0700)
committer
Wayne Davison
<wayned@samba.org>
Wed, 23 Jul 2008 04:34:20 +0000
(21:34 -0700)
to allocate 0 bytes of memory (which can fail on some OSes).
hlink.c
patch
|
blob
|
blame
|
history
diff --git
a/hlink.c
b/hlink.c
index
1e8adc8
..
99b4315
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-179,7
+179,7
@@
static void match_gnums(int32 *ndx_list, int ndx_count)
* to first when we're done. */
void match_hard_links(struct file_list *flist)
{
- if (!list_only) {
+ if (!list_only
&& flist->used
) {
int i, ndx_count = 0;
int32 *ndx_list;