summaryrefslogtreecommitdiff
path: root/uidlist.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix usermap/groupmap parsing of MIN-MAX IDs.Wayne Davison2014-04-301-2/+5
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Fix two unused-variable compiler warnings.Wayne Davison2011-09-221-2/+1
|
* Use a union for idlist's name/max_id value. Fixes bug 8137.Wayne Davison2011-05-161-25/+37
|
* Some uid/gid fixes for (id_t)-1 and other large ID values.Wayne Davison2011-02-221-15/+32
| | | | | | | | | The code now avoids any special internal meaning for uid/gid -1, which allows it to be mapped to a better value (use 4294967295 instead of -1 as the ID to map). Replaced atol() with something than can return a value > 0x7FFFFFFF and that will error-out if the value overflows. If chown() is called with a uid or gid of -1, complain that the ID is not settable and signal a transfer error. Fixes bug 6936.
* Avoid a compiler warnings about a signed/unsigned mismatch.Wayne Davison2009-12-131-1/+1
|
* Moved a few group-related functions with some minor tweaks;Wayne Davison2009-10-201-5/+61
|
* Define and use "our_gid" variable.Wayne Davison2009-09-021-10/+4
|
* Enhance name_to_{u,g}id() to optionally parse numbers and renameWayne Davison2009-05-071-12/+5
| | | | to {user,group}_to_*(). Based on a patch by Matt McCutchen.
* Fixed recv_add_uid() to properly differentiate users and groups.Matt McCutchen2009-01-131-3/+3
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Adding the --usermap/--groupmap/--chown options.Wayne Davison2008-11-151-50/+146
|
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-5/+4
| | | | fine-grained output control (in addition to the coarse -v).
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Make a few more char pointers const.Wayne Davison2008-02-191-4/+4
|
* Some daemon security improvements, including the new parametersWayne Davison2008-02-151-2/+10
| | | | "charset" and "numeric ids".
* Made some user-/group-name pointers "const".Wayne Davison2007-12-291-6/+6
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Changed "count" to "used" in struct file_list since there canWayne Davison2007-07-071-2/+2
| | | | | be empty items that make the count inaccurate (and the name somewhat deceiving).
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Fixed a thinko in the calling of recv_add_gid().Wayne Davison2007-05-211-1/+1
|
* The match_gid() function needed to affect the *flags_ptr valueWayne Davison2007-05-211-13/+12
| | | | when re-using the last-found match.
* Moved GID_NONE define from rsync.h to uidlist.c.Wayne Davison2007-05-201-9/+8
|
* - Changed id & id2 from int to id_t in the struct iflist.Wayne Davison2007-05-201-37/+52
| | | | | | | | - Added a uint16 flags var to struct iflist. - We now mark a group with FLAG_SKIP_GROUP if the receiving user can't set a group rather than turning it into GID_NONE. This allows us to keep the real group ID mapping, which is needed by the ACL code.
* Changed the *_abbbrevint() functions to *_varint().Wayne Davison2007-04-201-6/+6
|
* Got rid of ACL's uid/gid iterators in favor of a single functionWayne Davison2007-04-181-9/+3
| | | | that converts the uids & gids in a loop.
* Use the abbrevint30 routines in a few more places.Wayne Davison2007-03-111-6/+7
|
* The ACL support has arrived! This version has a brand new protocolWayne Davison2007-03-111-4/+15
| | | | | that makes it incompatible with all prior versions. A patch will be provided to allow talking with older (patched) rsync versions.
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Assign the owner and group using F_OWNER() and F_GROUP().Wayne Davison2006-12-281-2/+2
|
* - Made match_uid(), match_gid(), recv_user_name(), and recv_group_name()Wayne Davison2006-12-281-12/+16
| | | | | public functions. - Made add_uid() and add_gid() return the name or NULL.
* Neaten up use of uid_t/gid_t variable types.Wayne Davison2006-12-281-33/+38
|
* - Typical tranfers now save 12-20 bytes per file because several varsWayne Davison2006-12-031-5/+2
| | | | | | | were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value.
* Changed sprintf() calls to snprintf() calls.Wayne Davison2006-10-131-5/+3
|
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-23/+24
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Decided to hold off on the potential memory savings of indexedWayne Davison2006-01-251-38/+6
| | | | uid/gid pairs until the next release.
* Dump some debug code.Wayne Davison2006-01-241-2/+0
|
* Optimized id_pair() so that clumps of IDs get handled moreWayne Davison2006-01-241-8/+20
| | | | efficiently.
* The uid & gid are now stored using an id_pair structure.Wayne Davison2006-01-241-7/+28
|
* Got rid of a superfluous newline.Wayne Davison2005-11-101-1/+0
|
* John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison2005-02-141-2/+2
| | | | values instead of non-zero.
* Use "#if" (not "#ifdef") for configure-defined macros.Wayne Davison2005-01-281-3/+3
|
* Fixed the use of an uninitialized variable in map_uid() and map_gid().Wayne Davison2004-04-281-3/+3
|
* - Guard against and out-of-memory condition.Wayne Davison2004-02-201-6/+7
| | | | - Don't use the NGROUPS_MAX define.
* Fixed a problem handling GID_NONE in match_gid().Wayne Davison2004-02-051-2/+2
|
* - Fixed a bug using --numeric-ids as non-root when the receiverWayne Davison2004-02-051-135/+110
| | | | | | | | | | | | | | | | | does not have permissions to set one or more of the gids. - If the add_[ug]id() routine couldn't find a name for an ID, we still note the ID in our list of IDs so that we don't try to look it up again (and again). (The name-less IDs are stripped when sending the IDs from the sender to the receiver.) - Created a better add_to_list() function that handles the linking of the new node into the list (rather than the caller doing it). - Added new internal functions for some receiver-side work that needed to be done in multiple places (the recv_add_[ug]id() functions). - We output debug info even for ID mappings that have no names. This make the list complete and also notes which gids get mapped to -1 (GID_NONE). - Turned several while loops into for loops.
* Moved a function.Wayne Davison2004-02-041-27/+27
|
* If a gid doesn't have a name on the originating system, the receiverWayne Davison2004-02-041-5/+3
| | | | | | won't see it in the list of IDs to remap. That means that we need to call the is_in_group() function from inside match_gid() to know if we can set the group or not (if we're not root).