OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 20 10:36:23 2024 UTC (2 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.3: +6 -2 lines
Diff to previous 1.3 (colored)

Add missing check for the case where the pattern hits a barrier before
the string is consumed as well. Right now a string of 'dir1/' and a
pattern of 'dir/' will result in an infinite loop because matchsub()
would return success but then would not move forward.

Report and diff from Kyle Evans (kevans FreeBSD.org)
OK tb@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:02 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Wed Nov 10 09:07:20 2021 UTC (2 years, 6 months ago) by bluhm
Branch: OPENBSD_6_9
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Copy new files created during post 6.9 developent from -current to
-stable.  This was forgotten in the previous -stable commit.

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

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 29 15:37:58 2021 UTC (2 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Branch point for: OPENBSD_6_9
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

This needs extern.h for the rmatch prototype

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 29 13:43:46 2021 UTC (2 years, 8 months ago) by claudio
Branch: MAIN

Implement --exclude/exclude-file and --include/include-file.
Currently only simple include and excludes work, the advanced filters
introduced later in rsync are not implemented. It is unclear if the per
directory filters are something we want to implement. This requires
more modern protocols which openrsync is not able to handle right now.

This adds a special matching function to allow the ** matching which behaves
mostly like rsyncs version with the exception of how bad [] patterns are
expanded. For bad patterns openrsync follows more how fnmatch behaves and
not the somewhat strange rsync behaviour.

Not perfect but committing now so people can test and provide feedback.

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.