rprintf(FINFO, "flist->length=%.0f\n",
(double) fptr[i]->length);
rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);
---- orig/flist.c 2005-01-24 01:43:09
+--- orig/flist.c 2005-01-25 00:53:58
+++ flist.c 2004-07-03 20:15:41
-@@ -64,6 +64,7 @@ extern int make_backups;
+@@ -63,6 +63,7 @@ extern int make_backups;
extern int backup_suffix_len;
extern int copy_links;
extern int copy_unsafe_links;
extern int protocol_version;
extern int sanitize_paths;
extern int delete_excluded;
-@@ -149,17 +150,17 @@ static void list_file_entry(struct file_
+@@ -147,17 +148,17 @@ static void list_file_entry(struct file_
#if SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
}
}
-@@ -340,6 +341,7 @@ void send_file_entry(struct file_struct
+@@ -333,6 +334,7 @@ void send_file_entry(struct file_struct
{
unsigned short flags;
static time_t modtime;
static mode_t mode;
static int64 dev;
static dev_t rdev;
-@@ -355,7 +357,7 @@ void send_file_entry(struct file_struct
+@@ -348,7 +350,7 @@ void send_file_entry(struct file_struct
if (!file) {
write_byte(f, 0);
dev = 0, rdev = makedev(0, 0);
rdev_major = 0;
uid = 0, gid = 0;
-@@ -404,6 +406,12 @@ void send_file_entry(struct file_struct
+@@ -397,6 +399,12 @@ void send_file_entry(struct file_struct
flags |= XMIT_SAME_TIME;
else
modtime = file->modtime;
#if SUPPORT_HARD_LINKS
if (file->link_u.idev) {
-@@ -459,6 +467,8 @@ void send_file_entry(struct file_struct
+@@ -452,6 +460,8 @@ void send_file_entry(struct file_struct
write_int(f, modtime);
if (!(flags & XMIT_SAME_MODE))
write_int(f, to_wire_mode(mode));
if (preserve_uid && !(flags & XMIT_SAME_UID)) {
if (!numeric_ids)
add_uid(uid);
-@@ -532,6 +542,7 @@ void receive_file_entry(struct file_stru
+@@ -525,6 +535,7 @@ void receive_file_entry(struct file_stru
struct file_list *flist, int f)
{
static time_t modtime;
static mode_t mode;
static int64 dev;
static dev_t rdev;
-@@ -550,7 +561,7 @@ void receive_file_entry(struct file_stru
+@@ -543,7 +554,7 @@ void receive_file_entry(struct file_stru
struct file_struct *file;
if (!fptr) {
dev = 0, rdev = makedev(0, 0);
rdev_major = 0;
uid = 0, gid = 0;
-@@ -606,6 +617,8 @@ void receive_file_entry(struct file_stru
+@@ -599,6 +610,8 @@ void receive_file_entry(struct file_stru
modtime = (time_t)read_int(f);
if (!(flags & XMIT_SAME_MODE))
mode = from_wire_mode(read_int(f));
if (preserve_uid && !(flags & XMIT_SAME_UID))
uid = (uid_t)read_int(f);
-@@ -656,6 +669,7 @@ void receive_file_entry(struct file_stru
+@@ -649,6 +662,7 @@ void receive_file_entry(struct file_stru
file->flags = 0;
file->modtime = modtime;
file->length = file_length;
file->mode = mode;
file->uid = uid;
-@@ -896,6 +910,7 @@ skip_excludes:
+@@ -889,6 +903,7 @@ skip_excludes:
file->flags = flags;
file->modtime = st.st_mtime;
file->length = st.st_size;
file->mode = st.st_mode;
file->uid = st.st_uid;
---- orig/generator.c 2005-01-24 01:43:09
+--- orig/generator.c 2005-01-24 06:20:37
+++ generator.c 2004-11-03 23:02:12
-@@ -97,7 +97,7 @@ static int unchanged_file(char *fn, stru
+@@ -99,7 +99,7 @@ static int unchanged_file(char *fn, stru
if (ignore_times)
return 0;
}
-@@ -497,7 +497,7 @@ static void recv_generator(char *fname,
+@@ -499,7 +499,7 @@ static void recv_generator(char *fname,
}
if (update_only && fnamecmp_type == FNAMECMP_FNAME
if (verbose > 1)
rprintf(FINFO, "%s is newer\n", safe_fname(fname));
return;
---- orig/options.c 2005-01-24 01:43:10
+--- orig/options.c 2005-01-25 03:26:51
+++ options.c 2005-01-24 01:51:48
@@ -49,6 +49,7 @@ int preserve_uid = 0;
int preserve_gid = 0;
int update_only = 0;
int cvs_exclude = 0;
int dry_run = 0;
-@@ -265,6 +266,7 @@ void usage(enum logcode F)
+@@ -266,6 +267,7 @@ void usage(enum logcode F)
rprintf(F," -g, --group preserve group\n");
rprintf(F," -D, --devices preserve devices (root only)\n");
rprintf(F," -t, --times preserve times\n");
rprintf(F," -O, --omit-dir-times omit directories when preserving times\n");
rprintf(F," -S, --sparse handle sparse files efficiently\n");
rprintf(F," -n, --dry-run show what would have been transferred\n");
-@@ -376,6 +378,7 @@ static struct poptOption long_options[]
+@@ -382,6 +384,7 @@ static struct poptOption long_options[]
{"devices", 'D', POPT_ARG_NONE, &preserve_devices, 0, 0, 0 },
{"times", 't', POPT_ARG_NONE, &preserve_times, 0, 0, 0 },
{"omit-dir-times", 'O', POPT_ARG_NONE, &omit_dir_times, 0, 0, 0 },
{"checksum", 'c', POPT_ARG_NONE, &always_checksum, 0, 0, 0 },
{"verbose", 'v', POPT_ARG_NONE, 0, 'v', 0, 0 },
{"quiet", 'q', POPT_ARG_NONE, 0, 'q', 0, 0 },
-@@ -1088,6 +1091,8 @@ void server_options(char **args,int *arg
+@@ -1128,6 +1131,8 @@ void server_options(char **args,int *arg
argstr[x++] = 'D';
if (preserve_times)
argstr[x++] = 't';
}
change_uid = am_root && preserve_uid && st->st_uid != file->uid;
---- orig/rsync.h 2005-01-21 00:35:26
+--- orig/rsync.h 2005-01-25 00:53:58
+++ rsync.h 2004-07-03 20:15:41
@@ -54,6 +54,7 @@
#define XMIT_HAS_IDEV_DATA (1<<9)
/* These flags are used in the live flist data. */
-@@ -115,6 +116,7 @@
+@@ -117,6 +118,7 @@
#define PERMS_REPORT (1<<0)
#define PERMS_SKIP_MTIME (1<<1)
#define FULL_FLUSH 1
#define NORMAL_FLUSH 0
-@@ -433,6 +435,7 @@ struct file_struct {
+@@ -435,6 +437,7 @@ struct file_struct {
struct hlink *links;
} link_u;
time_t modtime;
uid_t uid;
gid_t gid;
mode_t mode;
---- orig/rsync.yo 2005-01-24 01:43:10
+--- orig/rsync.yo 2005-01-25 03:26:51
+++ rsync.yo 2005-01-24 01:57:18
@@ -332,6 +332,7 @@ verb(
-D, --devices preserve devices (root only)
-S, --sparse handle sparse files efficiently
-n, --dry-run show what would have been transferred
-W, --whole-file copy whole files, no incremental checks
-@@ -644,6 +645,11 @@ dit(bf(-O, --omit-dir-times)) This tells
- the preserving of modification times is enabled (see --times). If NFS
- is sharing the files on the receiving end, it is a good idea to use -O.
+@@ -648,6 +649,11 @@ dit(bf(-O, --omit-dir-times)) This tells
+ it is preserving modification times (see --times). If NFS is sharing
+ the directories on the receiving side, it is a good idea to use -O.
+dit(bf(-A, --copy-atimes)) This tells rsync to transfer access times
+along with the files and update them on the remote system. Note that