-
- total += ret;
-
---- options.c 2004-04-17 13:07:23.000000000 -0400
-+++ options.c 2004-04-19 16:07:57.000000000 -0400
-@@ -83,6 +83,7 @@ int safe_symlinks = 0;
- int copy_unsafe_links = 0;
- int size_only = 0;
- int bwlimit = 0;
-+int timelimit = 0;
- int delete_after = 0;
- int only_existing = 0;
- int opt_ignore_existing = 0;
-@@ -288,6 +289,7 @@ void usage(enum logcode F)
- rprintf(F," --log-format=FORMAT log file transfers using specified format\n");
- rprintf(F," --password-file=FILE get password from FILE\n");
- rprintf(F," --bwlimit=KBPS limit I/O bandwidth, KBytes per second\n");
-+ rprintf(F," --timelimit=MINS Stop rsync after MINS minutes\n");
- rprintf(F," --write-batch=PREFIX write batch fileset starting with PREFIX\n");
- rprintf(F," --read-batch=PREFIX read batch fileset starting with PREFIX\n");
- rprintf(F," -h, --help show this help screen\n");
-@@ -377,6 +379,7 @@ static struct poptOption long_options[]
- {"port", 0, POPT_ARG_INT, &rsync_port, 0, 0, 0 },
- {"log-format", 0, POPT_ARG_STRING, &log_format, 0, 0, 0 },
- {"bwlimit", 0, POPT_ARG_INT, &bwlimit, 0, 0, 0 },
-+ {"timelimit", 0, POPT_ARG_INT, &timelimit, 0, 0, 0 },
- {"address", 0, POPT_ARG_STRING, &bind_address, 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 },
-@@ -881,6 +884,12 @@ void server_options(char **args,int *arg