From 32a3b39f5bf2f4150507889dba1b378cfb65e774 Mon Sep 17 00:00:00 2001 From: Sebastian Benoit Date: Tue, 12 Feb 2019 19:13:04 +0000 Subject: 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. --- usr.bin/rsync/extern.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.bin/rsync/extern.h') diff --git a/usr.bin/rsync/extern.h b/usr.bin/rsync/extern.h index 350351754c9..72d59a14d62 100644 --- a/usr.bin/rsync/extern.h +++ b/usr.bin/rsync/extern.h @@ -1,4 +1,4 @@ -/* $Id: extern.h,v 1.6 2019/02/12 19:04:52 benno Exp $ */ +/* $Id: extern.h,v 1.7 2019/02/12 19:13:03 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -302,10 +302,12 @@ int sess_stats_send(struct sess *, int); int sess_stats_recv(struct sess *, int); void idents_free(struct ident *, size_t); +void idents_gid_assign(struct sess *, + struct flist *, size_t, const struct ident *, size_t); void idents_gid_remap(struct sess *, struct ident *, size_t); int idents_gid_add(struct sess *, struct ident **, size_t *, gid_t); -int idents_send(struct sess *, int, const struct ident *, size_t); int idents_recv(struct sess *, int, struct ident **, size_t *); +int idents_send(struct sess *, int, const struct ident *, size_t); __END_DECLS -- cgit v1.2.3