Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6166 utils: fix bug in lr_link
[fs/lustre-release.git]
/
lustre
/
utils
/
lustre_rsync.c
diff --git
a/lustre/utils/lustre_rsync.c
b/lustre/utils/lustre_rsync.c
index
086dc21
..
5d28634
100644
(file)
--- a/
lustre/utils/lustre_rsync.c
+++ b/
lustre/utils/lustre_rsync.c
@@
-1005,7
+1005,7
@@
int lr_link(struct lr_info *info)
break;
len = strlen(info->path) - strlen(info->name);
-
if (len >
0 && strcmp(info->path + len,
+
if (len >=
0 && strcmp(info->path + len,
info->name) == 0)
snprintf(info->dest, PATH_MAX, "%s/%s",
status->ls_targets[info->target_no],