summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-04-06 12:30:36 +0000
committerAndrew Tridgell <tridge@samba.org>1999-04-06 12:30:36 +0000
commitcec8aa7724d6d93d62ff60a264d1c800a580ba9b (patch)
tree96d3c28616925d9d049fc3f98775114c4b99b0cc /main.c
parent4c36a13ef2b76608c3647f7752c5a03db58ba582 (diff)
downloadrsync-cec8aa7724d6d93d62ff60a264d1c800a580ba9b.tar.gz
handle the case of an empty file list in get_local_name
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 35f64007..db9201af 100644
--- a/main.c
+++ b/main.c
@@ -208,7 +208,7 @@ static char *get_local_name(struct file_list *flist,char *name)
return name;
}
- if (flist->count == 1)
+ if (flist->count <= 1)
return name;
if (do_mkdir(name,0777 & ~orig_umask) != 0) {