X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/654175798bdbdd6403e10c8fa74e8586b3612ea1..1e8ae5ede66ba337ba6abbb4afad2b3319c1db74:/exclude.c diff --git a/exclude.c b/exclude.c index 2f2b3679..9b325542 100644 --- a/exclude.c +++ b/exclude.c @@ -264,7 +264,7 @@ void send_exclude_list(int f) if (exclude_list[i]->include) { if (remote_version < 19) { rprintf(FERROR,"remote rsync does not support include syntax - aborting\n"); - exit_cleanup(RERR_NOSUPPORT); + exit_cleanup(RERR_UNSUPPORTED); } write_int(f,l+2); write_buf(f,"+ ",2); @@ -321,7 +321,7 @@ void add_cvs_excludes(void) add_exclude(cvs_ignore_list[i], 0); if ((p=getenv("HOME")) && strlen(p) < (MAXPATHLEN-12)) { - slprintf(fname,sizeof(fname)-1, "%s/.cvsignore",p); + slprintf(fname,sizeof(fname), "%s/.cvsignore",p); add_exclude_file(fname,0,0); }