=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/main.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- src/usr.bin/rsync/main.c 2019/02/18 21:55:27 1.29 +++ src/usr.bin/rsync/main.c 2019/02/18 22:47:34 1.30 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.29 2019/02/18 21:55:27 benno Exp $ */ +/* $Id: main.c,v 1.30 2019/02/18 22:47:34 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -138,13 +138,13 @@ if (f->host != NULL) { if (strncasecmp(f->host, "rsync://", 8) == 0) { - /* rsync://host/module[/path] */ + /* rsync://host[:port]/module[/path] */ f->remote = 1; len = strlen(f->host) - 8 + 1; memmove(f->host, f->host + 8, len); if ((cp = strchr(f->host, '/')) == NULL) - errx(1, "rsync protocol " - "requires a module name"); + errx(1, "rsync protocol requires a module " + "name"); *cp++ = '\0'; f->module = cp; if ((cp = strchr(f->module, '/')) != NULL) @@ -333,7 +333,8 @@ memset(&opts, 0, sizeof(struct opts)); - while ((c = getopt_long(argc, argv, "Dae:ghlnoprtv", lopts, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "Dae:ghlnoprtv", lopts, NULL)) + != -1) { switch (c) { case 'D': opts.devices = 1;