if (verbose > 2) {
rprintf(FINFO,"_exit_cleanup(code=%d, file=%s, line=%d): about to call exit(%d)\n",
---- orig/clientserver.c 2005-02-14 02:45:10
+--- orig/clientserver.c 2005-02-20 00:02:22
+++ clientserver.c 2004-07-03 20:22:18
-@@ -344,6 +344,9 @@ static int rsync_module(int f_in, int f_
+@@ -354,6 +354,9 @@ static int rsync_module(int f_in, int f_
XFLG_ANCHORED2ABS | XFLG_OLD_PREFIXES);
log_init();
if (use_chroot) {
/*
-@@ -466,6 +469,9 @@ static int rsync_module(int f_in, int f_
+@@ -476,6 +479,9 @@ static int rsync_module(int f_in, int f_
rprintf(FLOG, "rsync %s %s from %s@%s (%s)\n",
am_sender ? "on" : "to",
request, auth_user, host, addr);
+ rprintf(FERROR,"Error at db_log_exit: Not connected to database!\n");
+ }
+}
---- orig/loadparm.c 2005-01-25 00:53:58
+--- orig/loadparm.c 2005-02-20 00:02:23
+++ loadparm.c 2004-07-03 20:22:18
@@ -125,6 +125,17 @@ typedef struct
BOOL list;
FN_LOCAL_BOOL(lp_ignore_errors, ignore_errors)
FN_LOCAL_BOOL(lp_ignore_nonreadable, ignore_nonreadable)
FN_LOCAL_STRING(lp_uid, uid)
---- orig/log.c 2005-02-16 15:35:53
+--- orig/log.c 2005-02-20 00:02:23
+++ log.c 2004-07-03 20:22:18
-@@ -77,7 +77,7 @@ struct {
+@@ -80,7 +80,7 @@ struct {
/*
* Map from rsync error code to name, or return NULL.
*/
{
int i;
for (i = 0; rerr_names[i].name; i++) {
---- orig/main.c 2005-02-15 19:27:04
+--- orig/main.c 2005-02-20 01:12:42
+++ main.c 2004-07-03 20:22:18
-@@ -136,6 +136,9 @@ static void report(int f)
+@@ -137,6 +137,9 @@ static void report(int f)
if (am_daemon) {
log_exit(0, __FILE__, __LINE__);
if (f == -1 || !am_sender)
return;
}
---- orig/receiver.c 2005-02-16 15:35:53
+--- orig/receiver.c 2005-02-20 20:55:51
+++ receiver.c 2005-02-16 15:40:15
-@@ -560,6 +560,9 @@ int recv_files(int f_in, struct file_lis
+@@ -626,6 +626,9 @@ int recv_files(int f_in, struct file_lis
if (!log_before_transfer)
log_recv(file, &initial_stats, iflags);
if (fd1 != -1)
close(fd1);
---- orig/sender.c 2005-02-16 15:35:54
+--- orig/sender.c 2005-02-20 01:12:43
+++ sender.c 2005-02-16 15:40:44
-@@ -263,6 +263,9 @@ void send_files(struct file_list *flist,
+@@ -295,6 +295,9 @@ void send_files(struct file_list *flist,
match_sums(f_out, s, mbuf, st.st_size);
if (!log_before_transfer)
log_send(file, &initial_stats, iflags);
AC_CONFIG_FILES([Makefile lib/dummy zlib/dummy popt/dummy shconfig])
AC_OUTPUT
---- orig/flist.c 2005-02-20 00:02:23
+--- orig/flist.c 2005-02-20 00:16:35
+++ flist.c 2005-02-14 02:45:34
@@ -974,6 +974,8 @@ void send_file_name(int f, struct file_l
file = make_file(fname, flist, f == -2 ? SERVER_FILTERS : ALL_FILTERS);
if (f >= 0) {
/* Now send the uid/gid list. This was introduced in
* protocol version 15 */
---- orig/generator.c 2005-02-20 00:02:23
+--- orig/generator.c 2005-02-20 22:13:19
+++ generator.c 2005-02-20 00:02:51
-@@ -492,6 +492,10 @@ static void recv_generator(char *fname,
+@@ -489,6 +489,10 @@ static void recv_generator(char *fname,
if (set_perms(fname, file, statret ? NULL : &st, 0)
&& verbose && code && f_out != -1)
rprintf(code, "%s/\n", safe_fname(fname));
next;
}
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-02-14 02:46:05
@@ -44,6 +44,7 @@ int keep_dirlinks = 0;
int copy_links = 0;
int preserve_perms = 0;
int preserve_devices = 0;
int preserve_uid = 0;
-@@ -171,6 +172,7 @@ static void print_rsync_version(enum log
+@@ -173,6 +174,7 @@ static void print_rsync_version(enum log
char const *got_socketpair = "no ";
char const *have_inplace = "no ";
char const *hardlinks = "no ";
char const *links = "no ";
char const *ipv6 = "no ";
STRUCT_STAT *dumstat;
-@@ -187,6 +189,10 @@ static void print_rsync_version(enum log
+@@ -189,6 +191,10 @@ static void print_rsync_version(enum log
hardlinks = "";
#endif
#ifdef SUPPORT_LINKS
links = "";
#endif
-@@ -201,9 +207,9 @@ static void print_rsync_version(enum log
+@@ -203,9 +209,9 @@ static void print_rsync_version(enum log
"Copyright (C) 1996-2005 by Andrew Tridgell and others\n");
rprintf(f, "<http://rsync.samba.org/>\n");
rprintf(f, "Capabilities: %d-bit files, %ssocketpairs, "
/* Note that this field may not have type ino_t. It depends
* on the complicated interaction between largefile feature
-@@ -273,6 +279,7 @@ void usage(enum logcode F)
+@@ -275,6 +281,7 @@ void usage(enum logcode F)
rprintf(F," -H, --hard-links preserve hard links\n");
rprintf(F," -K, --keep-dirlinks treat symlinked dir on receiver as dir\n");
rprintf(F," -p, --perms preserve permissions\n");
rprintf(F," -o, --owner preserve owner (root only)\n");
rprintf(F," -g, --group preserve group\n");
rprintf(F," -D, --devices preserve devices (root only)\n");
-@@ -394,6 +401,7 @@ static struct poptOption long_options[]
+@@ -398,6 +405,7 @@ static struct poptOption long_options[]
{"no-whole-file", 0, POPT_ARG_VAL, &whole_file, 0, 0, 0 },
{"copy-unsafe-links",0, POPT_ARG_NONE, ©_unsafe_links, 0, 0, 0 },
{"perms", 'p', POPT_ARG_NONE, &preserve_perms, 0, 0, 0 },
{"owner", 'o', POPT_ARG_NONE, &preserve_uid, 0, 0, 0 },
{"group", 'g', POPT_ARG_NONE, &preserve_gid, 0, 0, 0 },
{"devices", 'D', POPT_ARG_NONE, &preserve_devices, 0, 0, 0 },
-@@ -849,6 +857,24 @@ int parse_arguments(int *argc, const cha
+@@ -853,6 +861,24 @@ int parse_arguments(int *argc, const cha
basis_dir[basis_dir_cnt++] = (char *)arg;
break;
default:
/* A large opt value means that set_refuse_options()
* turned this option off. */
-@@ -1242,6 +1268,8 @@ void server_options(char **args,int *arg
+@@ -1257,6 +1283,8 @@ void server_options(char **args,int *arg
if (preserve_hard_links)
argstr[x++] = 'H';
#include "proto.h"
/* We have replacement versions of these if they're missing. */
---- orig/rsync.yo 2005-02-19 09:27:49
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2004-07-03 20:11:58
@@ -317,6 +317,7 @@ to the detailed description below for a
-H, --hard-links preserve hard links
-o, --owner preserve owner (root only)
-g, --group preserve group
-D, --devices preserve devices (root only)
-@@ -624,6 +625,11 @@ source file's permissions and the umask
+@@ -625,6 +626,11 @@ source file's permissions and the umask
other files (including updated files) retain their existing permissions
(which is the same behavior as other file-copy utilities, such as cp).
This patch adds the --append option, which works like a "resume" mode in
an ftp client, appending new data onto the end of the files it updates.
---- orig/generator.c 2005-02-20 01:12:42
+--- orig/generator.c 2005-02-20 22:13:19
+++ generator.c 2005-02-15 19:31:13
@@ -46,6 +46,7 @@ extern int remove_sent_files;
extern int update_only;
args[ac++] = "--inplace";
if (tmpdir) {
---- orig/receiver.c 2005-02-20 02:54:54
+--- orig/receiver.c 2005-02-20 20:55:51
+++ receiver.c 2005-02-11 20:26:32
@@ -45,6 +45,7 @@ extern int remove_sent_files;
extern int module_id;
extern int keep_partial;
extern int checksum_seed;
extern int inplace;
-@@ -170,6 +171,28 @@ static int receive_data(int f_in, char *
+@@ -233,6 +234,28 @@ static int receive_data(int f_in, char *
sum_init(checksum_seed);
while ((i = recv_token(f_in, &data)) != 0) {
if (do_progress)
show_progress(offset, total_size);
-@@ -364,6 +387,7 @@ int recv_files(int f_in, struct file_lis
+@@ -422,6 +445,7 @@ int recv_files(int f_in, struct file_lis
send_msg(MSG_DONE, "", 0);
if (keep_partial && !partial_dir)
make_backups = 0; /* prevents double backup */
make proto
---- orig/batch.c 2005-02-07 20:41:56
+--- orig/batch.c 2005-02-16 17:08:13
+++ batch.c 2004-07-03 20:15:41
-@@ -206,6 +206,8 @@ void show_flist(int index, struct file_s
+@@ -205,6 +205,8 @@ void show_flist(int index, struct file_s
rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);
rprintf(FINFO, "flist->modtime=%#lx\n",
(long unsigned) fptr[i]->modtime);
rprintf(FINFO, "flist->length=%.0f\n",
(double) fptr[i]->length);
rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);
---- orig/flist.c 2005-02-14 02:45:10
+--- orig/flist.c 2005-02-20 00:16:35
+++ flist.c 2005-02-07 21:06:04
-@@ -62,6 +62,7 @@ extern int make_backups;
- extern int backup_suffix_len;
+@@ -54,6 +54,7 @@ extern int relative_paths;
+ extern int implied_dirs;
extern int copy_links;
extern int copy_unsafe_links;
+extern int copy_atimes;
extern int protocol_version;
extern int sanitize_paths;
- extern int max_delete;
-@@ -147,16 +148,18 @@ static void list_file_entry(struct file_
+ extern int deletion_count;
+@@ -143,16 +144,18 @@ static void list_file_entry(struct file_
#ifdef SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
safe_fname(f_name(f)));
}
}
-@@ -320,6 +323,7 @@ void send_file_entry(struct file_struct
+@@ -316,6 +319,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;
-@@ -335,7 +339,7 @@ void send_file_entry(struct file_struct
+@@ -331,7 +335,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;
-@@ -384,6 +388,12 @@ void send_file_entry(struct file_struct
+@@ -380,6 +384,12 @@ void send_file_entry(struct file_struct
flags |= XMIT_SAME_TIME;
else
modtime = file->modtime;
#ifdef SUPPORT_HARD_LINKS
if (file->link_u.idev) {
-@@ -439,6 +449,8 @@ void send_file_entry(struct file_struct
+@@ -435,6 +445,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);
-@@ -512,6 +524,7 @@ static struct file_struct *receive_file_
+@@ -508,6 +520,7 @@ static struct file_struct *receive_file_
unsigned short flags, int f)
{
static time_t modtime;
static mode_t mode;
static int64 dev;
static dev_t rdev;
-@@ -530,7 +543,7 @@ static struct file_struct *receive_file_
+@@ -526,7 +539,7 @@ static struct file_struct *receive_file_
struct file_struct *file;
if (!flist) {
dev = 0, rdev = makedev(0, 0);
rdev_major = 0;
uid = 0, gid = 0;
-@@ -586,6 +599,8 @@ static struct file_struct *receive_file_
+@@ -582,6 +595,8 @@ static struct file_struct *receive_file_
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);
-@@ -636,6 +651,7 @@ static struct file_struct *receive_file_
+@@ -632,6 +647,7 @@ static struct file_struct *receive_file_
file->flags = 0;
file->modtime = modtime;
file->length = file_length;
file->mode = mode;
file->uid = uid;
-@@ -885,6 +901,7 @@ skip_filters:
+@@ -881,6 +897,7 @@ skip_filters:
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-02-14 02:45:10
+--- orig/generator.c 2005-02-20 22:13:19
+++ generator.c 2004-11-03 23:02:12
-@@ -100,7 +100,7 @@ static int unchanged_file(char *fn, stru
+@@ -150,7 +150,7 @@ static int unchanged_file(char *fn, stru
if (ignore_times)
return 0;
}
-@@ -612,7 +612,7 @@ static void recv_generator(char *fname,
+@@ -725,7 +725,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-02-14 02:45:10
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-01-24 01:51:48
@@ -50,6 +50,7 @@ int preserve_uid = 0;
int preserve_gid = 0;
int update_only = 0;
int cvs_exclude = 0;
int dry_run = 0;
-@@ -273,6 +274,7 @@ void usage(enum logcode F)
+@@ -279,6 +280,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");
-@@ -394,6 +396,7 @@ static struct poptOption long_options[]
+@@ -403,6 +405,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 },
-@@ -1214,6 +1217,8 @@ void server_options(char **args,int *arg
+@@ -1265,6 +1268,8 @@ void server_options(char **args,int *arg
argstr[x++] = 'D';
if (preserve_times)
argstr[x++] = 't';
if (omit_dir_times && am_sender)
argstr[x++] = 'O';
if (preserve_perms)
---- orig/rsync.c 2005-02-14 02:45:10
+--- orig/rsync.c 2005-02-20 00:02:23
+++ rsync.c 2005-01-24 01:59:12
-@@ -26,6 +26,7 @@ extern int verbose;
- extern int dry_run;
+@@ -27,6 +27,7 @@ extern int dry_run;
+ extern int daemon_log_format_has_i;
extern int preserve_times;
extern int omit_dir_times;
+extern int copy_atimes;
extern int am_root;
extern int am_server;
extern int am_sender;
-@@ -156,6 +157,7 @@ int set_perms(char *fname,struct file_st
+@@ -173,6 +174,7 @@ int set_perms(char *fname,struct file_st
int updated = 0;
STRUCT_STAT st2;
int change_uid, change_gid;
if (!st) {
if (dry_run)
-@@ -168,18 +170,28 @@ int set_perms(char *fname,struct file_st
+@@ -185,18 +187,28 @@ int set_perms(char *fname,struct file_st
st = &st2;
}
}
change_uid = am_root && preserve_uid && st->st_uid != file->uid;
---- orig/rsync.h 2005-02-14 02:45:10
+--- orig/rsync.h 2005-02-20 00:02:23
+++ 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 @@
+@@ -116,6 +117,7 @@
#define PERMS_REPORT (1<<0)
#define PERMS_SKIP_MTIME (1<<1)
#define FULL_FLUSH 1
#define NORMAL_FLUSH 0
-@@ -483,6 +485,7 @@ struct file_struct {
+@@ -498,6 +500,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-02-14 02:45:11
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-01-24 01:57:18
@@ -322,6 +322,7 @@ to the detailed description below for a
-D, --devices preserve devices (root only)
+ -A, --copy-atimes copy access times
-S, --sparse handle sparse files efficiently
-n, --dry-run show what would have been transferred
- -W, --whole-file copy files whole
-@@ -643,6 +644,11 @@ dit(bf(-O, --omit-dir-times)) This tells
+ -W, --whole-file copy files whole (without rsync algorithm)
+@@ -654,6 +655,11 @@ dit(bf(-O, --omit-dir-times)) This tells
it is preserving modification times (see bf(--times)). If NFS is sharing
the directories on the receiving side, it is a good idea to use bf(-O).
return 0;
}
---- orig/util.c 2005-02-14 02:45:11
+--- orig/util.c 2005-02-20 19:17:49
+++ util.c 2005-02-07 21:09:12
@@ -128,12 +128,17 @@ void overflow(char *str)
file->uid = st.st_uid;
file->gid = st.st_gid;
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-02-16 15:38:40
-@@ -132,6 +132,7 @@ char *log_format = NULL;
+@@ -134,6 +134,7 @@ char *log_format = NULL;
char *password_file = NULL;
char *rsync_path = RSYNC_PATH;
char *backup_dir = NULL;
char backup_dir_buf[MAXPATHLEN];
int rsync_port = 0;
int compare_dest = 0;
-@@ -151,6 +152,8 @@ int list_only = 0;
+@@ -153,6 +154,8 @@ int list_only = 0;
#define MAX_BATCH_NAME_LEN 256 /* Must be less than MAXPATHLEN-13 */
char *batch_name = NULL;
static int daemon_opt; /* sets am_daemon after option error-reporting */
static int F_option_cnt = 0;
static int modify_window_set;
-@@ -278,6 +281,7 @@ void usage(enum logcode F)
+@@ -280,6 +283,7 @@ void usage(enum logcode F)
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");
rprintf(F," -W, --whole-file copy files whole (without rsync algorithm)\n");
-@@ -396,6 +400,7 @@ static struct poptOption long_options[]
+@@ -400,6 +404,7 @@ static struct poptOption long_options[]
{"perms", 'p', POPT_ARG_NONE, &preserve_perms, 0, 0, 0 },
{"owner", 'o', POPT_ARG_NONE, &preserve_uid, 0, 0, 0 },
{"group", 'g', POPT_ARG_NONE, &preserve_gid, 0, 0, 0 },
{"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 },
-@@ -1067,6 +1072,13 @@ int parse_arguments(int *argc, const cha
+@@ -1082,6 +1087,13 @@ int parse_arguments(int *argc, const cha
return 0;
}
if (log_format) {
if (strstr(log_format, "%i") != NULL)
log_format_has_i = 1;
-@@ -1416,6 +1428,11 @@ void server_options(char **args,int *arg
+@@ -1431,6 +1443,11 @@ void server_options(char **args,int *arg
}
}
if (files_from && (!am_sender || remote_filesfrom_file)) {
if (remote_filesfrom_file) {
args[ac++] = "--files-from";
---- orig/rsync.yo 2005-02-19 09:27:49
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-01-24 01:48:43
@@ -322,6 +322,7 @@ to the detailed description below for a
-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 files whole (without rsync algorithm)
-@@ -653,6 +654,14 @@ dit(bf(-O, --omit-dir-times)) This tells
+@@ -654,6 +655,14 @@ dit(bf(-O, --omit-dir-times)) This tells
it is preserving modification times (see bf(--times)). If NFS is sharing
the directories on the receiving side, it is a good idea to use bf(-O).
[Patched update to have context and apply to latest CVS source.]
---- orig/generator.c 2005-02-13 05:50:28
+--- orig/generator.c 2005-02-20 22:13:19
+++ generator.c 2004-11-11 22:15:27
-@@ -43,6 +43,7 @@ extern int inplace;
+@@ -49,6 +49,7 @@ extern int inplace;
extern int make_backups;
extern int csum_length;
extern int ignore_times;
extern int size_only;
extern OFF_T max_size;
extern int io_timeout;
-@@ -81,6 +82,8 @@ static int unchanged_attrs(struct file_s
+@@ -132,6 +133,8 @@ static void itemize(struct file_struct *
/* Perform our quick-check heuristic for determining if a file is unchanged. */
static int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
{
if (st->st_size != file->length)
return 0;
---- orig/options.c 2005-02-13 05:50:28
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-01-28 19:14:15
-@@ -87,6 +87,7 @@ int keep_partial = 0;
+@@ -88,6 +88,7 @@ int keep_partial = 0;
int safe_symlinks = 0;
int copy_unsafe_links = 0;
int size_only = 0;
+int date_only = 0;
int daemon_bwlimit = 0;
int bwlimit = 0;
- size_t bwlimit_writemax = 0;
-@@ -300,6 +301,7 @@ void usage(enum logcode F)
+ int fuzzy_basis = 0;
+@@ -308,6 +309,7 @@ void usage(enum logcode F)
rprintf(F," --timeout=TIME set I/O timeout in seconds\n");
rprintf(F," -I, --ignore-times don't skip files that match in size and mod-time\n");
rprintf(F," --size-only skip files that match in size\n");
+ rprintf(F," --date-only skip files that match in mod-time\n");
rprintf(F," --modify-window=NUM compare mod-times with reduced accuracy\n");
rprintf(F," -T, --temp-dir=DIR create temporary files in directory DIR\n");
- rprintf(F," --compare-dest=DIR also compare destination files relative to DIR\n");
-@@ -354,6 +356,7 @@ static struct poptOption long_options[]
+ rprintf(F," -y, --fuzzy find similar file for basis if no dest file\n");
+@@ -364,6 +366,7 @@ static struct poptOption long_options[]
{"password-file", 0, POPT_ARG_STRING, &password_file, 0, 0, 0 },
{"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 },
{"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 },
{"modify-window", 0, POPT_ARG_INT, &modify_window, OPT_MODIFY_WINDOW, 0, 0 },
{"one-file-system", 'x', POPT_ARG_NONE, &one_file_system, 0, 0, 0 },
{"existing", 0, POPT_ARG_NONE, &only_existing, 0, 0, 0 },
-@@ -1306,6 +1309,9 @@ void server_options(char **args,int *arg
+@@ -1371,6 +1374,9 @@ void server_options(char **args,int *arg
if (size_only)
args[ac++] = "--size-only";
if (modify_window_set) {
if (asprintf(&arg, "--modify-window=%d", modify_window) < 0)
goto oom;
---- orig/rsync.yo 2005-02-13 21:51:10
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-02-11 22:49:10
-@@ -349,6 +349,7 @@ to the detailed description below for a
+@@ -350,6 +350,7 @@ to the detailed description below for a
--timeout=TIME set I/O timeout in seconds
-I, --ignore-times don't skip files that match size and time
--size-only skip files that match in size
+ --date-only skip files that match in mod-time
--modify-window=NUM compare mod-times with reduced accuracy
-T, --temp-dir=DIR create temporary files in directory DIR
- --compare-dest=DIR also compare received files relative to DIR
-@@ -434,6 +435,12 @@ regardless of timestamp. This is useful
+ -y, --fuzzy find similar file for basis if no dest file
+@@ -446,6 +447,12 @@ regardless of timestamp. This is useful
after using another mirroring system which may not preserve timestamps
exactly.
+ if (verbose > 2)
+ rprintf(FINFO, "Converted filename: %s -> %s\n", src, dest);
+}
---- orig/generator.c 2005-02-20 00:02:23
+--- orig/generator.c 2005-02-20 22:13:19
+++ generator.c 2005-02-03 02:07:33
-@@ -339,7 +339,13 @@ static int find_fuzzy(struct file_struct
+@@ -340,7 +340,13 @@ static int find_fuzzy(struct file_struct
* start sending checksums.
*
* Note that f_out is set to -1 when doing final directory-permission and
{ RERR_SIGNAL , "received SIGUSR1 or SIGINT" },
{ RERR_WAITCHILD , "some error returned by waitpid()" },
{ RERR_MALLOC , "error allocating core memory buffers" },
---- orig/main.c 2005-02-20 00:02:23
+--- orig/main.c 2005-02-20 01:12:42
+++ main.c 2004-07-22 00:31:47
-@@ -359,7 +359,7 @@ static pid_t do_cmd(char *cmd, char *mac
+@@ -361,7 +361,7 @@ static pid_t do_cmd(char *cmd, char *mac
whole_file = 1;
ret = local_child(argc, args, f_in, f_out, child_main);
} else
if (dir)
free(dir);
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-02-14 02:50:32
-@@ -129,6 +129,7 @@ char *basis_dir[MAX_BASIS_DIRS+1];
+@@ -131,6 +131,7 @@ char *basis_dir[MAX_BASIS_DIRS+1];
char *config_file = NULL;
char *shell_cmd = NULL;
char *log_format = NULL;
char *password_file = NULL;
char *rsync_path = RSYNC_PATH;
char *backup_dir = NULL;
-@@ -311,6 +312,7 @@ void usage(enum logcode F)
+@@ -314,6 +315,7 @@ void usage(enum logcode F)
rprintf(F," --compare-dest=DIR also compare destination files relative to DIR\n");
rprintf(F," --copy-dest=DIR ... and include copies of unchanged files\n");
rprintf(F," --link-dest=DIR hardlink to files in DIR when unchanged\n");
rprintf(F," -z, --compress compress file data during the transfer\n");
rprintf(F," -C, --cvs-exclude auto-ignore files the same way CVS does\n");
rprintf(F," -f, --filter=RULE add a file-filtering RULE\n");
-@@ -419,6 +421,7 @@ static struct poptOption long_options[]
+@@ -423,6 +425,7 @@ static struct poptOption long_options[]
{"copy-dest", 0, POPT_ARG_STRING, 0, OPT_COPY_DEST, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
{"fuzzy", 'y', POPT_ARG_NONE, &fuzzy_basis, 0, 0, 0 },
+
+ return result;
+}
---- orig/util.c 2005-02-18 20:17:35
+--- orig/util.c 2005-02-20 19:17:49
+++ util.c 2004-07-03 20:18:02
@@ -1331,3 +1331,55 @@ uint32 fuzzy_distance(const char *s1, in
This patch from Sami Farin lets you specify --fsync if you want fsync()
to be called on every file we write.
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-01-28 19:30:47
@@ -39,6 +39,7 @@ int make_backups = 0;
**/
int archive_mode = 0;
int keep_dirlinks = 0;
int copy_links = 0;
-@@ -301,6 +302,7 @@ void usage(enum logcode F)
+@@ -304,6 +305,7 @@ void usage(enum logcode F)
rprintf(F," --partial keep partially transferred files\n");
rprintf(F," --partial-dir=DIR put a partially transferred file into DIR\n");
rprintf(F," --delay-updates put all updated files into place at transfer's end\n");
rprintf(F," --numeric-ids don't map uid/gid values by user/group name\n");
rprintf(F," --timeout=TIME set I/O timeout in seconds\n");
rprintf(F," -I, --ignore-times don't skip files that match in size and mod-time\n");
-@@ -381,6 +383,7 @@ static struct poptOption long_options[]
+@@ -385,6 +387,7 @@ static struct poptOption long_options[]
{"safe-links", 0, POPT_ARG_NONE, &safe_symlinks, 0, 0, 0 },
{"help", 'h', POPT_ARG_NONE, 0, 'h', 0, 0 },
{"backup", 'b', POPT_ARG_NONE, &make_backups, 0, 0, 0 },
{"dry-run", 'n', POPT_ARG_NONE, &dry_run, 0, 0, 0 },
{"sparse", 'S', POPT_ARG_NONE, &sparse_files, 0, 0, 0 },
{"cvs-exclude", 'C', POPT_ARG_NONE, &cvs_exclude, 0, 0, 0 },
-@@ -1404,6 +1407,9 @@ void server_options(char **args,int *arg
+@@ -1419,6 +1422,9 @@ void server_options(char **args,int *arg
args[ac++] = tmpdir;
}
if (basis_dir[0] && am_sender) {
/* the server only needs this option if it is not the sender,
* and it may be an older version that doesn't know this
---- orig/receiver.c 2005-02-20 00:16:35
+--- orig/receiver.c 2005-02-20 20:55:51
+++ receiver.c 2005-02-20 00:17:37
@@ -38,6 +38,7 @@ extern int keep_dirlinks;
extern int preserve_hard_links;
extern int basis_dir_cnt;
extern int make_backups;
extern int cleanup_got_literal;
-@@ -248,6 +249,12 @@ static int receive_data(int f_in, char *
+@@ -312,6 +313,12 @@ static int receive_data(int f_in, char *
exit_cleanup(RERR_FILEIO);
}
char *partial_dir;
struct filter_list_struct server_filter_list;
---- orig/util.c 2005-02-18 20:17:35
+--- orig/util.c 2005-02-20 19:17:49
+++ util.c 2004-07-03 20:18:13
@@ -33,6 +33,7 @@ extern int module_id;
extern int modify_window;
case '?':
/* Match anything but '/'. */
if (*text == '/')
---- orig/options.c 2005-02-11 18:21:45
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2004-10-14 17:22:51
-@@ -96,6 +96,7 @@ int max_delete = 0;
+@@ -99,6 +99,7 @@ int max_delete = 0;
OFF_T max_size = 0;
int ignore_errors = 0;
int modify_window = 0;
int blocking_io = -1;
int checksum_seed = 0;
int inplace = 0;
-@@ -316,6 +317,7 @@ void usage(enum logcode F)
+@@ -325,6 +326,7 @@ void usage(enum logcode F)
rprintf(F," --include-from=FILE read include patterns from FILE\n");
rprintf(F," --files-from=FILE read list of source-file names from FILE\n");
rprintf(F," -0, --from0 all *-from file lists are delimited by nulls\n");
rprintf(F," --version print version number\n");
rprintf(F," --port=PORT specify double-colon alternate port number\n");
rprintf(F," --blocking-io use blocking I/O for the remote shell\n");
-@@ -371,6 +373,7 @@ static struct poptOption long_options[]
+@@ -382,6 +384,7 @@ static struct poptOption long_options[]
{"include", 0, POPT_ARG_STRING, 0, OPT_INCLUDE, 0, 0 },
{"exclude-from", 0, POPT_ARG_STRING, 0, OPT_EXCLUDE_FROM, 0, 0 },
{"include-from", 0, POPT_ARG_STRING, 0, OPT_INCLUDE_FROM, 0, 0 },
{"safe-links", 0, POPT_ARG_NONE, &safe_symlinks, 0, 0, 0 },
{"help", 'h', POPT_ARG_NONE, 0, 'h', 0, 0 },
{"backup", 'b', POPT_ARG_NONE, &make_backups, 0, 0, 0 },
-@@ -1318,6 +1321,9 @@ void server_options(char **args,int *arg
+@@ -1383,6 +1386,9 @@ void server_options(char **args,int *arg
args[ac++] = arg;
}
char *partial_dir;
struct filter_list_struct server_filter_list;
---- orig/util.c 2005-02-11 10:53:15
+--- orig/util.c 2005-02-20 19:17:49
+++ util.c 2004-08-13 16:40:34
@@ -31,6 +31,7 @@ extern int verbose;
extern int dry_run;
+}
+
+#endif
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-02-14 02:52:09
-@@ -132,6 +132,7 @@ char *log_format = NULL;
+@@ -134,6 +134,7 @@ char *log_format = NULL;
char *password_file = NULL;
char *rsync_path = RSYNC_PATH;
char *backup_dir = NULL;
char backup_dir_buf[MAXPATHLEN];
int rsync_port = 0;
int compare_dest = 0;
-@@ -311,6 +312,7 @@ void usage(enum logcode F)
+@@ -314,6 +315,7 @@ void usage(enum logcode F)
rprintf(F," --compare-dest=DIR also compare destination files relative to DIR\n");
rprintf(F," --copy-dest=DIR ... and include copies of unchanged files\n");
rprintf(F," --link-dest=DIR hardlink to files in DIR when unchanged\n");
rprintf(F," -z, --compress compress file data during the transfer\n");
rprintf(F," -C, --cvs-exclude auto-ignore files the same way CVS does\n");
rprintf(F," -f, --filter=RULE add a file-filtering RULE\n");
-@@ -350,7 +352,7 @@ void usage(enum logcode F)
+@@ -353,7 +355,7 @@ void usage(enum logcode F)
enum {OPT_VERSION = 1000, OPT_DAEMON, OPT_SENDER, OPT_EXCLUDE, OPT_EXCLUDE_FROM,
OPT_FILTER, OPT_COMPARE_DEST, OPT_COPY_DEST, OPT_LINK_DEST,
OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_MODIFY_WINDOW,
OPT_REFUSED_BASE = 9000};
static struct poptOption long_options[] = {
-@@ -418,6 +420,7 @@ static struct poptOption long_options[]
+@@ -422,6 +424,7 @@ static struct poptOption long_options[]
{"compare-dest", 0, POPT_ARG_STRING, 0, OPT_COMPARE_DEST, 0, 0 },
{"copy-dest", 0, POPT_ARG_STRING, 0, OPT_COPY_DEST, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
{"fuzzy", 'y', POPT_ARG_NONE, &fuzzy_basis, 0, 0, 0 },
/* TODO: Should this take an optional int giving the compression level? */
{"compress", 'z', POPT_ARG_NONE, &do_compression, 0, 0, 0 },
-@@ -849,6 +852,21 @@ int parse_arguments(int *argc, const cha
+@@ -853,6 +856,21 @@ int parse_arguments(int *argc, const cha
basis_dir[basis_dir_cnt++] = (char *)arg;
break;
default:
/* A large opt value means that set_refuse_options()
* turned this option off. */
-@@ -1416,6 +1434,11 @@ void server_options(char **args,int *arg
+@@ -1431,6 +1449,11 @@ void server_options(char **args,int *arg
}
}
if (files_from && (!am_sender || remote_filesfrom_file)) {
if (remote_filesfrom_file) {
args[ac++] = "--files-from";
---- orig/receiver.c 2005-02-20 00:16:35
+--- orig/receiver.c 2005-02-20 20:55:51
+++ receiver.c 2005-01-15 21:29:13
-@@ -51,6 +51,7 @@ extern int delay_updates;
+@@ -52,6 +52,7 @@ extern int delay_updates;
extern struct stats stats;
extern char *log_format;
extern char *tmpdir;
extern char *partial_dir;
extern char *basis_dir[];
-@@ -142,12 +143,13 @@ static int get_tmpname(char *fnametmp, c
+@@ -206,12 +207,13 @@ static int get_tmpname(char *fnametmp, c
static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
int32 len;
OFF_T offset = 0;
OFF_T offset2;
-@@ -167,6 +169,9 @@ static int receive_data(int f_in, char *
+@@ -231,6 +233,9 @@ static int receive_data(int f_in, char *
} else
mapbuf = NULL;
sum_init(checksum_seed);
while ((i = recv_token(f_in, &data)) != 0) {
-@@ -183,6 +188,8 @@ static int receive_data(int f_in, char *
+@@ -247,6 +252,8 @@ static int receive_data(int f_in, char *
cleanup_got_literal = 1;
sum_update(data, i);
if (fd != -1 && write_file(fd,data,i) != i)
goto report_write_error;
-@@ -209,6 +216,8 @@ static int receive_data(int f_in, char *
+@@ -273,6 +280,8 @@ static int receive_data(int f_in, char *
see_token(map, len);
sum_update(map, len);
}
if (inplace) {
-@@ -249,6 +258,8 @@ static int receive_data(int f_in, char *
+@@ -313,6 +322,8 @@ static int receive_data(int f_in, char *
}
sum_end(file_sum1);
if (mapbuf)
unmap_file(mapbuf);
-@@ -294,7 +305,7 @@ static void read_gen_name(int fd, char *
+@@ -358,7 +369,7 @@ static void read_gen_name(int fd, char *
static void discard_receive_data(int f_in, OFF_T length)
{
}
-@@ -562,8 +573,12 @@ int recv_files(int f_in, struct file_lis
+@@ -621,8 +632,12 @@ int recv_files(int f_in, struct file_lis
rprintf(FINFO, "%s\n", safe_fname(fname));
/* recv file data */
#include "byteorder.h"
#include "lib/mdfour.h"
---- orig/rsync.yo 2005-02-19 09:27:49
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-02-13 06:58:47
-@@ -355,6 +355,7 @@ to the detailed description below for a
+@@ -356,6 +356,7 @@ to the detailed description below for a
--compare-dest=DIR also compare received files relative to DIR
--copy-dest=DIR ... and include copies of unchanged files
--link-dest=DIR hardlink to files in DIR when unchanged
handle relative symlinks properly, and that has not yet been fixed
in this modified version.
---- orig/flist.c 2005-02-14 02:45:10
+--- orig/flist.c 2005-02-20 00:16:35
+++ flist.c 2004-07-16 16:58:04
-@@ -51,6 +51,7 @@ extern int filesfrom_fd;
+@@ -45,6 +45,7 @@ extern int filesfrom_fd;
extern int one_file_system;
extern int keep_dirlinks;
extern int preserve_links;
extern int preserve_hard_links;
extern int preserve_perms;
extern int preserve_devices;
-@@ -737,6 +738,30 @@ static struct file_struct *receive_file_
+@@ -733,6 +734,30 @@ static struct file_struct *receive_file_
}
/**
* Create a file_struct for a named file by reading its stat()
* information and performing extensive checks against global
-@@ -862,7 +887,13 @@ skip_filters:
+@@ -858,7 +883,13 @@ skip_filters:
basename_len = strlen(basename) + 1; /* count the '\0' */
#ifdef SUPPORT_LINKS
#else
linkname_len = 0;
#endif
---- orig/options.c 2005-02-14 02:45:10
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-01-28 19:33:24
@@ -43,6 +43,7 @@ int archive_mode = 0;
int keep_dirlinks = 0;
int preserve_hard_links = 0;
int preserve_perms = 0;
int preserve_devices = 0;
-@@ -263,6 +264,7 @@ void usage(enum logcode F)
+@@ -269,6 +270,7 @@ void usage(enum logcode F)
rprintf(F," --inplace update destination files in-place (SEE MAN PAGE)\n");
rprintf(F," -d, --dirs transfer directories without recursing\n");
rprintf(F," -l, --links copy symlinks as symlinks\n");
rprintf(F," -L, --copy-links transform symlink into referent file/dir\n");
rprintf(F," --copy-unsafe-links only \"unsafe\" symlinks are transformed\n");
rprintf(F," --safe-links ignore symlinks that point outside the source tree\n");
-@@ -383,6 +385,7 @@ static struct poptOption long_options[]
+@@ -392,6 +394,7 @@ static struct poptOption long_options[]
{"inplace", 0, POPT_ARG_NONE, &inplace, 0, 0, 0 },
{"dirs", 'd', POPT_ARG_VAL, &xfer_dirs, 2, 0, 0 },
{"links", 'l', POPT_ARG_NONE, &preserve_links, 0, 0, 0 },
{"copy-links", 'L', POPT_ARG_NONE, ©_links, 0, 0, 0 },
{"keep-dirlinks", 'K', POPT_ARG_NONE, &keep_dirlinks, 0, 0, 0 },
{"whole-file", 'W', POPT_ARG_VAL, &whole_file, 1, 0, 0 },
---- orig/rsync.yo 2005-02-14 02:45:11
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-01-28 19:33:40
@@ -311,6 +311,7 @@ to the detailed description below for a
--inplace update destination files in-place
This patch still needs autoconf support for portability.
---- orig/access.c 2005-01-28 19:08:19
+--- orig/access.c 2005-02-14 02:45:09
+++ access.c 2005-01-15 20:09:59
@@ -22,12 +22,15 @@
*/
AC_MSG_CHECKING([whether to call shutdown on all sockets])
case $host_os in
*cygwin* ) AC_MSG_RESULT(yes)
---- orig/main.c 2005-02-20 00:02:23
+--- orig/main.c 2005-02-20 01:12:42
+++ main.c 2004-10-08 20:15:28
-@@ -52,6 +52,9 @@ extern int write_batch;
+@@ -54,6 +54,9 @@ extern int write_batch;
extern int batch_fd;
extern int batch_gen_fd;
extern int filesfrom_fd;
extern pid_t cleanup_child_pid;
extern struct stats stats;
extern char *files_from;
-@@ -823,33 +826,48 @@ static int start_client(int argc, char *
+@@ -836,33 +839,48 @@ static int start_client(int argc, char *
if ((rc = copy_argv(argv)))
return rc;
p = find_colon(argv[0]);
if (p) { /* source is remote */
if (remote_filesfrom_file
-@@ -881,12 +899,26 @@ static int start_client(int argc, char *
+@@ -894,12 +912,26 @@ static int start_client(int argc, char *
argv++;
} else { /* source is local */
am_sender = 1;
p = strchr(host,'/');
if (p) {
*p = '\0';
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2004-11-27 18:31:46
-@@ -148,6 +148,14 @@ int log_format_has_o_or_i = 0;
+@@ -150,6 +150,14 @@ int log_format_has_o_or_i = 0;
int always_checksum = 0;
int list_only = 0;
#define MAX_BATCH_NAME_LEN 256 /* Must be less than MAXPATHLEN-13 */
char *batch_name = NULL;
-@@ -173,6 +181,7 @@ static void print_rsync_version(enum log
+@@ -175,6 +183,7 @@ static void print_rsync_version(enum log
char const *hardlinks = "no ";
char const *links = "no ";
char const *ipv6 = "no ";
STRUCT_STAT *dumstat;
#ifdef HAVE_SOCKETPAIR
-@@ -195,6 +204,10 @@ static void print_rsync_version(enum log
+@@ -197,6 +206,10 @@ static void print_rsync_version(enum log
ipv6 = "";
#endif
rprintf(f, "%s version %s protocol version %d\n",
RSYNC_NAME, RSYNC_VERSION, PROTOCOL_VERSION);
rprintf(f,
-@@ -208,10 +221,10 @@ static void print_rsync_version(enum log
+@@ -210,10 +223,10 @@ static void print_rsync_version(enum log
/* Note that this field may not have type ino_t. It depends
* on the complicated interaction between largefile feature
* macros. */
#ifdef MAINTAINER_MODE
rprintf(f, " panic action: \"%s\"\n",
get_panic_action());
-@@ -340,6 +353,13 @@ void usage(enum logcode F)
+@@ -343,6 +356,13 @@ void usage(enum logcode F)
rprintf(F," -4, --ipv4 prefer IPv4\n");
rprintf(F," -6, --ipv6 prefer IPv6\n");
#endif
rprintf(F," -h, --help show this help screen\n");
rprintf(F,"\nUse \"rsync --daemon --help\" to see the daemon-mode command-line options.\n");
-@@ -350,7 +370,7 @@ void usage(enum logcode F)
+@@ -353,7 +373,7 @@ void usage(enum logcode F)
enum {OPT_VERSION = 1000, OPT_DAEMON, OPT_SENDER, OPT_EXCLUDE, OPT_EXCLUDE_FROM,
OPT_FILTER, OPT_COMPARE_DEST, OPT_COPY_DEST, OPT_LINK_DEST,
OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_MODIFY_WINDOW,
OPT_REFUSED_BASE = 9000};
static struct poptOption long_options[] = {
-@@ -448,6 +468,13 @@ static struct poptOption long_options[]
+@@ -452,6 +472,13 @@ static struct poptOption long_options[]
{"ipv4", '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{"ipv6", '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
#endif
/* All these options switch us into daemon-mode option-parsing. */
{"address", 0, POPT_ARG_STRING, 0, OPT_DAEMON, 0, 0 },
{"config", 0, POPT_ARG_STRING, 0, OPT_DAEMON, 0, 0 },
-@@ -849,6 +876,12 @@ int parse_arguments(int *argc, const cha
+@@ -853,6 +880,12 @@ int parse_arguments(int *argc, const cha
basis_dir[basis_dir_cnt++] = (char *)arg;
break;
default:
/* A large opt value means that set_refuse_options()
* turned this option off. */
-@@ -1102,6 +1135,17 @@ int parse_arguments(int *argc, const cha
+@@ -1117,6 +1150,17 @@ int parse_arguments(int *argc, const cha
if (delay_updates && !partial_dir)
partial_dir = partialdir_for_delayupdate;
+ preserve_gid = 2;
+ }
}
---- orig/options.c 2005-02-20 00:02:23
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2004-09-09 01:59:08
-@@ -394,8 +394,8 @@ static struct poptOption long_options[]
+@@ -398,8 +398,8 @@ static struct poptOption long_options[]
{"no-whole-file", 0, POPT_ARG_VAL, &whole_file, 0, 0, 0 },
{"copy-unsafe-links",0, POPT_ARG_NONE, ©_unsafe_links, 0, 0, 0 },
{"perms", 'p', POPT_ARG_NONE, &preserve_perms, 0, 0, 0 },
{"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 },
-@@ -734,6 +734,14 @@ int parse_arguments(int *argc, const cha
+@@ -738,6 +738,14 @@ int parse_arguments(int *argc, const cha
usage(FINFO);
exit_cleanup(0);
case 'v':
verbose++;
break;
-@@ -944,8 +952,8 @@ int parse_arguments(int *argc, const cha
+@@ -948,8 +956,8 @@ int parse_arguments(int *argc, const cha
#endif
preserve_perms = 1;
preserve_times = 1;
preserve_devices = 1;
}
-@@ -1242,10 +1250,16 @@ void server_options(char **args,int *arg
+@@ -1257,10 +1265,16 @@ void server_options(char **args,int *arg
if (preserve_hard_links)
argstr[x++] = 'H';
[Updated to latest CVS source by Wayne Davison.]
---- orig/syscall.c 2005-01-28 23:01:10
+--- orig/syscall.c 2005-02-14 02:45:11
+++ syscall.c 2004-04-22 23:48:45
@@ -62,9 +62,14 @@ int do_symlink(char *fname1, char *fname
- #if HAVE_LINK
+ #ifdef HAVE_LINK
int do_link(char *fname1, char *fname2)
{
+ int st;
Do we need configure support for mktime()?
---- orig/io.c 2005-02-03 02:04:20
+--- orig/io.c 2005-02-20 01:12:42
+++ io.c 2004-07-17 15:28:36
@@ -51,6 +51,7 @@ extern int eol_nulls;
extern int csum_length;
if (!am_server && !am_daemon) {
rprintf(FERROR, "io timeout after %d seconds -- exiting\n",
(int)(t-last_io));
---- orig/options.c 2005-02-15 19:27:05
+--- orig/options.c 2005-02-20 01:12:42
+++ options.c 2005-01-28 19:35:23
-@@ -102,6 +102,7 @@ int checksum_seed = 0;
+@@ -104,6 +104,7 @@ int checksum_seed = 0;
int inplace = 0;
int delay_updates = 0;
long block_size = 0; /* "long" because popt can't set an int32. */
/** Network address family. **/
-@@ -331,6 +332,8 @@ void usage(enum logcode F)
+@@ -337,6 +338,8 @@ void usage(enum logcode F)
rprintf(F," --password-file=FILE read password from FILE\n");
rprintf(F," --list-only list the files instead of copying them\n");
rprintf(F," --bwlimit=KBPS limit I/O bandwidth; KBytes per second\n");
rprintf(F," --write-batch=FILE write a batched update to FILE\n");
rprintf(F," --read-batch=FILE read a batched update from FILE\n");
#ifdef INET6
-@@ -348,6 +351,7 @@ enum {OPT_VERSION = 1000, OPT_DAEMON, OP
+@@ -354,6 +357,7 @@ enum {OPT_VERSION = 1000, OPT_DAEMON, OP
OPT_FILTER, OPT_COMPARE_DEST, OPT_COPY_DEST, OPT_LINK_DEST,
OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_MODIFY_WINDOW,
OPT_READ_BATCH, OPT_WRITE_BATCH, OPT_TIMEOUT, OPT_MAX_SIZE,
OPT_REFUSED_BASE = 9000};
static struct poptOption long_options[] = {
-@@ -432,6 +436,8 @@ static struct poptOption long_options[]
+@@ -439,6 +443,8 @@ static struct poptOption long_options[]
{"log-format", 0, POPT_ARG_STRING, &log_format, 0, 0, 0 },
{"itemize-changes", 'i', POPT_ARG_NONE, &itemize_changes, 0, 0, 0 },
{"bwlimit", 0, POPT_ARG_INT, &bwlimit, 0, 0, 0 },
{"backup-dir", 0, POPT_ARG_STRING, &backup_dir, 0, 0, 0 },
{"hard-links", 'H', POPT_ARG_NONE, &preserve_hard_links, 0, 0, 0 },
{"read-batch", 0, POPT_ARG_STRING, &batch_name, OPT_READ_BATCH, 0, 0 },
-@@ -837,6 +843,36 @@ int parse_arguments(int *argc, const cha
+@@ -853,6 +859,36 @@ int parse_arguments(int *argc, const cha
basis_dir[basis_dir_cnt++] = (char *)arg;
break;
default:
/* A large opt value means that set_refuse_options()
* turned this option off. */
-@@ -1283,6 +1319,15 @@ void server_options(char **args,int *arg
+@@ -1340,6 +1376,15 @@ void server_options(char **args,int *arg
args[ac++] = arg;
}
if (backup_dir) {
args[ac++] = "--backup-dir";
args[ac++] = backup_dir;
---- orig/rsync.yo 2005-02-15 19:27:05
+--- orig/rsync.yo 2005-02-20 01:12:43
+++ rsync.yo 2005-02-01 10:46:35
-@@ -378,6 +378,8 @@ to the detailed description below for a
+@@ -379,6 +379,8 @@ to the detailed description below for a
--password-file=FILE read password from FILE
--list-only list the files instead of copying them
--bwlimit=KBPS limit I/O bandwidth; KBytes per second
--write-batch=FILE write a batched update to FILE
--read-batch=FILE read a batched update from FILE
--checksum-seed=NUM set block/file checksum seed (advanced)
-@@ -1182,6 +1184,19 @@ transfer was too fast, it will wait befo
+@@ -1180,6 +1182,19 @@ transfer was too fast, it will wait befo
result is an average transfer rate equaling the specified limit. A value
of zero specifies no limit.
dit(bf(--write-batch=FILE)) Record a file that can later be applied to
another identical destination with bf(--read-batch). See the "BATCH MODE"
section for details.
---- orig/util.c 2005-02-14 02:45:11
+--- orig/util.c 2005-02-20 19:17:49
+++ util.c 2004-07-03 20:23:22
@@ -126,6 +126,132 @@ void overflow(char *str)
exit_cleanup(RERR_MALLOC);