Commit cec8aa77 authored by Andrew Tridgell's avatar Andrew Tridgell

handle the case of an empty file list in get_local_name

parent 4c36a13e
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment