Displaying 4 results from an estimated 4 matches for "cmpbuf".
Did you mean:
tmpbuf
2019 Mar 07
1
[PATCH] Bug fix for file comparison
...cksum as unchanged, for example.
Please be aware that the patch is untested.
Florian
diff --git a/generator.c b/generator.c
index a112da6..2df1b28 100644
--- a/generator.c
+++ b/generator.c
@@ -876,26 +876,22 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
pathjoin(cmpbuf, MAXPATHLEN, basis_dir[j], fname);
if (link_stat(cmpbuf, &sxp->st, 0) < 0 || !S_ISREG(sxp->st.st_mode))
continue;
- switch (match_level) {
- case 0:
+ if (match_level < 1) {
best_match = j;
match_level = 1;
- /* FALL THROUGH */
- case 1:
- if (!unchanged_file(...
2016 Jul 25
2
[Bug 12036] New: Multiple --link-dest, --copy-dest, or --compare-dest flags produce incorrect behavior
https://bugzilla.samba.org/show_bug.cgi?id=12036
Bug ID: 12036
Summary: Multiple --link-dest, --copy-dest, or --compare-dest
flags produce incorrect behavior
Product: rsync
Version: 3.1.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component:
2010 Jun 15
3
about rsyncing of block devices
...cls;
extern int preserve_xattrs;
extern int preserve_links;
extern int preserve_devices;
+extern int copy_devices;
extern int preserve_specials;
extern int preserve_hard_links;
extern int preserve_executability;
@@ -980,7 +981,7 @@ static int try_dests_reg(struct file_str
do {
pathjoin(cmpbuf, MAXPATHLEN, basis_dir[j], fname);
- if (link_stat(cmpbuf, &sxp->st, 0) < 0 || !S_ISREG(sxp->st.st_mode))
+ if (link_stat(cmpbuf, &sxp->st, 0) < 0 || !(S_ISREG(sxp->st.st_mode) || (copy_devices && IS_DEVICE(sxp->st.st_mode))))
continue;
switch (match_le...
2007 Sep 22
0
rsync build on IA64 using icc
...3): remark #810: conversion from "int" to "unsigned short" may lose significant bits
file->link_u.links->link_dest_used = j + 1;
^
generator.c(681): remark #981: operands are evaluated in unspecified order
full_fname(cmpbuf), fname);
^
generator.c(680): remark #981: operands are evaluated in unspecified order
rsyserr(FINFO, errno, "copy_file %s => %s",
^
generator.c(863): remark #981: operands are evaluated in unspecified order
full_fname(dn));
^
generator.c(861): remar...