version 1.1, 2019/02/12 19:08:29 |
version 1.2, 2019/02/12 19:09:12 |
|
|
* identifiers of the same names. |
* identifiers of the same names. |
* Use the remote numeric identifier if we can't find the group OR the |
* Use the remote numeric identifier if we can't find the group OR the |
* group has identifier zero. |
* group has identifier zero. |
|
* FIXME: what happens if we don't find the local group (we should |
|
* really warn about this), but the remote group identifier maps into a |
|
* different group name for us? |
|
* These are pretty unexpected things for rsync to do. |
|
* Another FIXME because we shouldn't let that happen even though the |
|
* reference rsync does. |
*/ |
*/ |
void |
void |
idents_gid_remap(struct sess *sess, struct ident *gids, size_t gidsz) |
idents_gid_remap(struct sess *sess, struct ident *gids, size_t gidsz) |
|
|
gids[i].mapped = gids[i].id; |
gids[i].mapped = gids[i].id; |
else |
else |
gids[i].mapped = grp->gr_gid; |
gids[i].mapped = grp->gr_gid; |
|
|
LOG4(sess, "remapped group %s: %" PRId32 " -> %" PRId32, |
LOG4(sess, "remapped group %s: %" PRId32 " -> %" PRId32, |
gids[i].name, gids[i].id, gids[i].mapped); |
gids[i].name, gids[i].id, gids[i].mapped); |
} |
} |
|
|
|
|
return 1; |
return 1; |
} |
} |
|
|