aboutsummaryrefslogtreecommitdiffstats
path: root/uidlist.c
Commit message (Collapse)AuthorAgeFilesLines
* - 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).
* Use the new HAVE_GETGROUPS define.Wayne Davison2004-02-041-2/+5
|
* Use MY_GID() instead of getgid().Wayne Davison2004-02-041-2/+2
|
* Another improvement to the debug info we output.Wayne Davison2004-02-041-3/+12
|
* Tweaked the new debug-logging strings.Wayne Davison2004-02-041-6/+6
|
* Output some debug info if verbose > 3.Wayne Davison2004-02-041-3/+24
|
* Added a little more compatibility code for non-standard systems.Wayne Davison2004-02-031-12/+14
|
* The static last_in value in match_gid() needed to default to -2 soWayne Davison2004-01-241-1/+1
| | | | | that we don't accidentally return a GID of 0 when we don't have the permissions to set it.
* Made the getgroups() code a little more portable. This will hopefullyWayne Davison2004-01-221-3/+19
| | | | | make the chgrp test work on the NetBSD and OpenBSD systems where it is failing.
* Fixed a bug when a non-root user copies a GID=0 file with -g setWayne Davison2004-01-151-7/+5
| | | | and no permissions to set group 0.
* Create GID_NONE for use gid test readability.J.W. Schultz2004-01-031-2/+2
|
* Set the file's gid to -1 if we don't have permissions to set it.Wayne Davison2004-01-021-7/+39
|
* Merged in the security fixes from 2.5.7.Wayne Davison2003-12-061-3/+3
|
* When comparing -1 to a group id, cast -1 with gid_t because on some systemsDavid Dykstra1999-03-011-1/+1
| | | | | such as sunos4 gid_t is an unsigned short. This prevented the just-added non-mapped group test from working on sunos4.
* Prevent the -g option from preserving groups that a non-root receiverDavid Dykstra1999-03-011-3/+7
| | | | | | | | | | | | | | does not belong to, in these two ways: 1. If a group mapping doesn't exist for a group name, do not preserve it for a non-root receiver. This is especially evident with the sender is a daemon using chroot because then no mappings are available. 2. Before setting the group on a file make sure that it is in the list of groups returned by getgroups(). The same thing is done by chgrp on systems that support bsd-style chown/chgrp, and this enforces that it happens the same way on all systems. Overhead is very little, especially since most systems don't allow more then 16 groups per user.
* change to allow names or numbers to be used for uid and gid.Andrew Tridgell1998-05-101-25/+6
|
* fixed a string termination bug in the uidlist handling code. I've alsoAndrew Tridgell1998-04-011-4/+4
| | | | | added a read_sbuf() routine that fixes this kind of bug generically to avoid similar problems in future.
* a large change to make rsync much more memory efficient. This is doneAndrew Tridgell1998-03-231-4/+4
| | | | | | | | | | | | in 3 ways: 1) the realloc is done on a list of pointers, not a list of structures 2) only the basename of the file is now kept in the file struct an a util function f_name() is now used to access the full name when required. 3) pointers to directory names are re-used hopefully I haven't broken anything. This will need lots of testing.
* *** empty log message ***Andrew Tridgell1998-01-131-0/+310