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:
8fba76d
)
Make the backup code call unsafe_symlink() correctly.
author
Wayne Davison
<wayned@samba.org>
Tue, 3 Mar 2009 16:42:56 +0000
(08:42 -0800)
committer
Wayne Davison
<wayned@samba.org>
Tue, 3 Mar 2009 16:57:39 +0000
(08:57 -0800)
backup.c
patch
|
blob
|
blame
|
history
diff --git
a/backup.c
b/backup.c
index
c93ab49
..
ecc40d5
100644
(file)
--- a/
backup.c
+++ b/
backup.c
@@
-295,7
+295,7
@@
static int keep_backup(const char *fname)
#ifdef SUPPORT_LINKS
if (!kept && preserve_links && S_ISLNK(file->mode)) {
const char *sl = F_SYMLINK(file);
- if (safe_symlinks && unsafe_symlink(sl,
buf
)) {
+ if (safe_symlinks && unsafe_symlink(sl,
fname
)) {
if (verbose) {
rprintf(FINFO, "ignoring unsafe symlink %s -> %s\n",
full_fname(buf), sl);