Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to avoid a problem with --copy-unsafe-links where a symlink was
[rsync/rsync.git]
/
t_unsafe.c
diff --git
a/t_unsafe.c
b/t_unsafe.c
index
9ba0aaa
..
12908f4
100644
(file)
--- a/
t_unsafe.c
+++ b/
t_unsafe.c
@@
-25,6
+25,7
@@
int dry_run = 0;
int am_root = 0;
int dry_run = 0;
int am_root = 0;
+int am_sender = 1;
int read_only = 0;
int list_only = 0;
int human_readable = 0;
int read_only = 0;
int list_only = 0;
int human_readable = 0;
@@
-41,7
+42,7
@@
main(int argc, char **argv)
}
printf("%s\n",
}
printf("%s\n",
- unsafe_symlink(argv[1],
argv[2]
) ? "unsafe" : "safe");
+ unsafe_symlink(argv[1],
path_depth(argv[2])
) ? "unsafe" : "safe");
return 0;
}
return 0;
}