OpenBSD CVS

CVS log for src/usr.bin/rsync/fargs.c


[BACK] Up to [local] / src / usr.bin / rsync

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 27 11:30:49 2023 UTC (5 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Implement --omit-link-times / -J based on the --omit-dir-times work
done by job@.
OK tb@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 23 11:59:53 2023 UTC (5 months, 3 weeks ago) by job
Branch: MAIN
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

Add --omit-dir-times / -O

OK claudio@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Apr 28 10:24:38 2023 UTC (12 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.23: +17 -10 lines
Diff to previous 1.23 (colored)

Implement --size-only and --ignore-times

Flags are passed to the remote system but --size-only is only set
if local system is sender since this is the behaviour of rsync.
Initial diff from Martin Cracauer but mostly reimplemented and extended
by myself.
OK kn@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 12 22:52:40 2022 UTC (2 years, 4 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

seperators -> separators

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Tue Nov 9 13:41:24 2021 UTC (2 years, 6 months ago) by benno
Branch: OPENBSD_6_9
Changes since 1.17: +34 -6 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

rpki-client(8) should handle CA misbehaviours as soft-errors.

This is a merge of usr.sbin/rpki-client and usr.bin/rsync from current
and includes all commits in rpki-client 7.5 up to Tue Nov 9 11:03:40
2021 and to openrsync up to Wed Nov 3 14:42:13 2021, including:

* Make rpki-client more resilient regarding untrusted input:
  - fail repository synchronisation after 15min runtime
  - limit the number of publication points per TAL
  - don't allow DOCTYPE definitions in RRDP XML files
  - fix detection of HTTP redirect loops.
* limit the number of concurrent rsync processes.
* fix CRLF in tal files.

This is patches/6.9/common/021_rpki.patch.sig

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Nov 9 13:40:41 2021 UTC (2 years, 6 months ago) by benno
Branch: OPENBSD_7_0
Changes since 1.19: +32 -1 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

rpki-client(8) should handle CA misbehaviours as soft-errors.

This is a merge of usr.sbin/rpki-client and usr.bin/rsync from current
and includes all commits in rpki-client 7.5 up to Tue Nov 9 11:03:40
2021 and to openrsync up to Wed Nov 3 14:42:13 2021, including:

* Make rpki-client more resilient regarding untrusted input:
  - fail repository synchronisation after 15min runtime
  - limit the number of publication points per TAL
  - don't allow DOCTYPE definitions in RRDP XML files
  - fix detection of HTTP redirect loops.
* limit the number of concurrent rsync processes.
* fix CRLF in tal files.

This is patches/7.0/common/004_rpki.patch.sig

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 3 14:42:12 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

whitespace observed during a read-through

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 29 08:00:59 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.20: +5 -1 lines
Diff to previous 1.20 (colored)

Properly implement --max-size and --min-size.
This uses scan_scaled(3) from libutil which is very similar to how rsync
behaves. Not implemented are the +/-1 math and the 1000 vs 1024 multipliers.
OK benno@ job@

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 22 11:10:34 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.19: +28 -1 lines
Diff to previous 1.19 (colored)

Implement --compare-dest in openrsync. compare-dest allows you to add
additional directories to check for files to be available.
OK benno@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 30 13:10:04 2021 UTC (2 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE
Branch point for: OPENBSD_7_0
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 (colored)

Replace Id: tags with OpenBSD: tags
OK deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 17 12:02:58 2021 UTC (3 years ago) by claudio
Branch: MAIN
Changes since 1.17: +3 -6 lines
Diff to previous 1.17 (colored)

Error out on memory failures in fargs_cmdline() and addargs() in both
cases it was impossible to start the remote rsync anyway. Also now
fargs_cmdline() can no longer fail. Add missing err(ERR_IPC, "pldege")
for the cases in socket.c
OK benno@

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 8 20:00:25 2019 UTC (5 years ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Branch point for: OPENBSD_6_9
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

remove sess argument from log functions. ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 4 04:19:54 2019 UTC (5 years, 1 month ago) by bket
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (colored)

Add support for not crossing filesystem boundaries (-x) to rsync. Option
and behaviour is the same as GPL rsync.

Initial diff received feedback from benno@, schwarze@, deraadt@ and
florian@. Thanks!

OK deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 2 05:32:08 2019 UTC (5 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.14: +38 -60 lines
Diff to previous 1.14 (colored)

Pull in addargs() API from ssh to replace complicated hand-rolled argument
composition code for the remote process.
ok florian naddy

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 31 08:47:46 2019 UTC (5 years, 1 month ago) by naddy
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Add ability to combine rsync:// and -e by splitting rsync_socket()
into two functions, rsync_connect() to establish a TCP connection
to the remote daemon, and rsync_socket() to run the actual protocol.

E.g.:
rsync -av --del -e 'ssh -W localhost:rsync -lanoncvs' \
rsync://anoncvs.spacehopper.org/OpenBSD-CVS/ /cvs

ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Feb 21 22:06:26 2019 UTC (5 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

implement --numeric-ids, tweaked by kristaps

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 16 10:48:05 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.11: +9 -2 lines
Diff to previous 1.11 (colored)

implement -D and in turn -a

"you snooze, you get collisions" deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 14 18:31:36 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.10: +15 -5 lines
Diff to previous 1.10 (colored)

sync with kristaps, commit 69f69c7c7c950d42e02666ac63e3b98ec9c972ec

Document the -e splice, bring long line, put variable at top of
function block.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 14 18:26:52 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

sync with kristaps, commit c5350b9055c3921001778275bb808a5c811c21c1

Protocol-level support for -o.  The actual sharing itself is more or less a
copy of the existing -g code.  I've refactored a lot of the ids.c code to be
generic and only accept a "isgid", as the rest is the same.  So there's some
churn as I make all references to "group" be generic.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 13 19:13:18 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +34 -11 lines
Diff to previous 1.8 (colored)

strsep the -e argument for execve; ok benno

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 12 19:39:57 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

whitespace and knf

Revision 1.7 / (download) - annotate - [select for diffs], Tue Feb 12 18:06:25 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN
Changes since 1.6: +16 -14 lines
Diff to previous 1.6 (colored)

sync

commit b55c5ce631d8fd557d665e25e31191b33c15f829
Author: kristaps <>
Date:   Mon Feb 11 23:27:23 2019 +0000

    Pass down -g and also order flags.

and the extern.h chunk from

commit 472ad2fab2692579a5773d78d6934b03c1098fb2
Author: kristaps <>
Date:   Mon Feb 11 20:45:22 2019 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Tue Feb 12 14:09:59 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

complete support for -e and -rsh=name options
ok florian benno

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 12 14:07:00 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

using const is misleading if the only access requires a de-const, it is
a false perception of safety
ok benno florian

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 11 21:44:44 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

premature bit snuck in

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 11 21:41:22 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +10 -9 lines
Diff to previous 1.2 (colored)

swap comparison arguments as needed, to match idiomatic C most of us
are familiar with.  Proofed by florian and benno

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 10 23:24:14 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN
Changes since 1.1: +4 -5 lines
Diff to previous 1.1 (colored)

fix whitespace

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 10 23:18:28 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN

Import Kristaps' openrsync into the tree.
OK deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.