OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (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_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

Replace Id: tags with OpenBSD: tags
OK deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 22 11:25:29 2021 UTC (3 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.13: +5 -4 lines
Diff to previous 1.13 (colored)

Adjust a type to unsigned since the io function works on unsigned ints.
Also the id is a strictly positve integer so this make sense.
Cleanup comments and a spacing while there.
From kristaps@

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 8 21:30:11 2019 UTC (5 years ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

remove sess argument from all functions that only used it for logging
functions.
ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 8 20:00:25 2019 UTC (5 years ago) by benno
Branch: MAIN
Changes since 1.11: +19 -19 lines
Diff to previous 1.11 (colored)

remove sess argument from log functions. ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 31 09:26:05 2019 UTC (5 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.10: +22 -13 lines
Diff to previous 1.10 (colored)

Increasing strictness regarding signed-vs-unsigned types and their range
in the io-path, whic is done by seperating int vs uint functions variants.
reviewed by naddy, florian, and jsg

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 30 07:24:02 2019 UTC (5 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

fix typo in ERRX1

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 23 16:04:28 2019 UTC (5 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.8: +9 -10 lines
Diff to previous 1.8 (colored)

indents and reflows around ERR*() and LOG*(); ok benno

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 21 22:13:43 2019 UTC (5 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.7: +7 -5 lines
Diff to previous 1.7 (colored)

kristaps cbe83cd64f40e634dbc22d3f2918c41977a6514d
If we don't get a uid/gid map, such as with an rsync:// address, we
might not be able to map.  So fall back on numeric ids.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 21 22:07:45 2019 UTC (5 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.6: +6 -9 lines
Diff to previous 1.6 (colored)

kristaps acb8f263717f27691f0318d4b7154f854b7206b3

As found by benno@, if --numeric-ids is passed in, rsync does not send
or receive the uid/gid lists at all.  This also means that we need not
process the lists, as we're simply going to copy around the same
value.

Revision 1.6 / (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.5: +14 -9 lines
Diff to previous 1.5 (colored)

implement --numeric-ids, tweaked by kristaps

Revision 1.5 / (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.4: +106 -62 lines
Diff to previous 1.4 (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.4 / (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.3: +8 -8 lines
Diff to previous 1.3 (colored)

whitespace and knf

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 12 19:13:03 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN
Changes since 1.2: +61 -12 lines
Diff to previous 1.2 (colored)

sync
commit 72ea211d57a0f235a2d7439a7e908af66f47fa10
Author: kristaps <>
Date:   Tue Feb 12 07:29:55 2019 +0000

    Sanitise group handling to handle group wheel (according to rsync, this is not
    ever remapped by name) and empty group names (not allowed, but we must accept them
    anyway).  Push most of this code into ids.c and make sure it is style(9)
    conformant.  Add TODO about performance and clarify protocol in rsync.5.

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

sync
commit 9ca15c1074e544bffbffd9cc3a8877f5075f7690
Author: kristaps <>
Date:   Tue Feb 12 00:00:00 2019 +0000

    Note some holes in rsync's gid mapping.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 12 19:08:29 2019 UTC (5 years, 3 months ago) by benno
Branch: MAIN

fix previous and add the file

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.