X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cd8185f2bd87206d9d41b8b3445202b3344080bf..d1be231290b3867648ee417fad341fdf1caaa94b:/options.c diff --git a/options.c b/options.c index 6fa59636..ca1b0187 100644 --- a/options.c +++ b/options.c @@ -142,7 +142,7 @@ void usage(int F) rprintf(F,"the block size defaults to %d\n",BLOCK_SIZE); rprintf(F,"\nPlease see the rsync(1) and rsyncd.conf(5) man pages for full documentation\n"); - rprintf(F,"See http://samba.anu.edu.au/rsync/ for updates and bug reports\n"); + rprintf(F,"See http://rsync.samba.org/ for updates and bug reports\n"); } enum {OPT_VERSION,OPT_SUFFIX,OPT_SENDER,OPT_SERVER,OPT_EXCLUDE, @@ -236,7 +236,8 @@ static int check_refuse_options(char *ref, int opt) len = strlen(name); while ((p = strstr(ref,name))) { - if (p[len] == ' ' || p[len] == 0) { + if ((p==ref || p[-1]==' ') && + (p[len] == ' ' || p[len] == 0)) { slprintf(err_buf,sizeof(err_buf), "The '%s' option is not supported by this server\n", name); return 1;