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:
f6b8d59
)
Made my last change a little better.
author
Wayne Davison
<wayned@samba.org>
Thu, 24 Apr 2003 16:26:09 +0000
(16:26 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 24 Apr 2003 16:26:09 +0000
(16:26 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
29ee6ad
..
79929d6
100644
(file)
--- a/
main.c
+++ b/
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) {