]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Fix rsync target location
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 6 Oct 2023 21:47:21 +0000 (15:47 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 7 Oct 2023 01:40:21 +0000 (19:40 -0600)
commit03988d6a36f64f3539a44efa411845e7b682250f
tree3a15d027ca187b213e5b41abe32bd317246dd761
parent5ea9880d57819af575401b1dbd1c678b57aee750
Fix rsync target location

Was downloading rsync://a.b/c into rsync://a.b/c/c, because of an rsync
complication (from rsync(1)):

> A trailing slash on the source changes this behavior to avoid creating
> an additional directory level at the destination. You can think of a
> trailing / on a source as meaning "copy the contents of this
> directory" as opposed to "copy the directory by name", but in both
> cases the attributes of the containing directory are transferred to
> the containing directory on the destination. In other words, each of
> the following commands copies the files in the same way, including
> their setting of the attributes of /dest/foo:
>
> rsync -av /src/foo /dest
> rsync -av /src/foo/ /dest/foo
src/cache/local_cache.c
src/common.c
src/common.h
src/http/http.c
src/rrdp/rrdp_parser.c
src/rsync/rsync.c