X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8c18ebe81d53ba65546feb5fff89ae574a361343..121bfb2b4d9df88bfbc9917209842bb8d9d17e22:/rsync.c diff --git a/rsync.c b/rsync.c index 8e8e67ee..f983135c 100644 --- a/rsync.c +++ b/rsync.c @@ -3,7 +3,7 @@ * * Copyright (C) 1996 Andrew Tridgell * Copyright (C) 1996 Paul Mackerras - * Copyright (C) 2003, 2004, 2005, 2006 Wayne Davison + * Copyright (C) 2003, 2004, 2005, 2006, 2007 Wayne Davison * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,7 +45,7 @@ extern int allow_8bit_chars; extern int protocol_version; extern int preserve_uid; extern int preserve_gid; -extern int incremental; +extern int inc_recurse; extern int inplace; extern int flist_eof; extern int keep_dirlinks; @@ -110,7 +110,7 @@ int read_ndx_and_attrs(int f_in, int f_out, int *iflag_ptr, break; if (ndx == NDX_DONE) return ndx; - if (!incremental || am_sender) + if (!inc_recurse || am_sender) goto invalid_ndx; if (ndx == NDX_FLIST_EOF) { flist_eof = 1; @@ -407,7 +407,7 @@ struct file_list *flist_for_ndx(int ndx) { struct file_list *flist = cur_flist; - if (!flist) + if (!flist && !(flist = first_flist)) return NULL; while (ndx < flist->ndx_start) {