projects
/
platform
/
upstream
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0cfd15
)
Fixed a crash bug in get_local_name() when the file list is empty.
author
Wayne Davison
<wayned@samba.org>
Sun, 23 Sep 2007 21:54:03 +0000
(21:54 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 23 Sep 2007 21:54:03 +0000
(21:54 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
9f2e2a9
..
a9118ed
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-582,7
+582,8
@@
static char *get_local_name(struct file_list *flist, char *dest_path)
exit_cleanup(RERR_FILEIO);
}
- if (strcmp(flist->files[0]->basename, ".") == 0)
+ if (flist->high >= flist->low
+ && strcmp(flist->files[flist->low]->basename, ".") == 0)
flist->files[0]->flags |= FLAG_DIR_CREATED;
if (verbose)