mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-18 20:06:07 -04:00
Made my last change a little better.
This commit is contained in:
5
main.c
5
main.c
@@ -285,7 +285,7 @@ oom:
|
||||
static char *get_local_name(struct file_list *flist,char *name)
|
||||
{
|
||||
STRUCT_STAT st;
|
||||
int len;
|
||||
int e;
|
||||
extern int orig_umask;
|
||||
|
||||
if (verbose > 2)
|
||||
@@ -311,8 +311,7 @@ static char *get_local_name(struct file_list *flist,char *name)
|
||||
return name;
|
||||
}
|
||||
|
||||
len = strlen(name);
|
||||
if ((len <= 1 || name[len-1] != '/') && flist->count <= 1)
|
||||
if (flist->count <= 1 && ((e = strlen(name)) <= 1 || name[e-1] != '/'))
|
||||
return name;
|
||||
|
||||
if (do_mkdir(name,0777 & ~orig_umask) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user