summaryrefslogtreecommitdiff
path: root/acls.c
Commit message (Collapse)AuthorAgeFilesLines
* Some memory allocation improvementsWayne Davison2020-06-251-13/+3
| | | | | | | | | | - All the memory-allocation macros now auto-check for failure and exit with a failure message that incudes the caller's file and lineno info. This includes strdup(). - Added the `--max-alloc=SIZE` option to be able to override the memory allocator's sanity-check limit. It defaults to 1G (as before). Fixes bugzilla bug 12769.
* Some indentation fixes.Wayne Davison2020-06-131-10/+5
|
* Two more spelling fixes and some year updates.Wayne Davison2020-04-161-1/+1
|
* Spelling fixes from a Fossies run done by Jens.Wayne Davison2020-04-151-1/+1
|
* Tweak the copyright year.Wayne Davison2019-03-161-1/+1
|
* Silence fall-through warnings.Wayne Davison2019-01-041-4/+2
|
* Tweak copyright date.Wayne Davison2018-01-141-1/+1
|
* Update the copyright year.Wayne Davison2015-08-081-1/+1
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Avoid ACL and/or xattr lookups on IS_MISSING_FILE() entries.Wayne Davison2014-01-191-1/+2
| | | | Fixes bug 10381.
* Use 0 (not NULL) for a non-pointer arg.Wayne Davison2013-12-251-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Expand NO_ENTRY items from fake-super ACLs in get_rsync_acl().Wayne Davison2011-05-251-0/+6
|
* Don't send user/group names for ACLs with --numeric-ids.Wayne Davison2011-03-181-2/+2
| | | | Fixes bug 8020.
* Allow a failure of EINVAL to mean no ACLs are available.Wayne Davison2011-02-221-0/+3
| | | | (If our POSIX types aren't valid, we can't handle the ACLs.)
* Avoid reading ACL/xattr info on filetypes not being copied.Wayne Davison2011-01-031-0/+19
| | | | | Make OS X avoid xattr access on device/special files. Fixes bug 5458.
* Better mask handling, including some changes to help solaris.Wayne Davison2009-09-121-18/+22
|
* Pass "new_mode" to set_acl() and change its return values.Wayne Davison2009-09-121-20/+19
|
* Put file descriptor arg at the start of the arg list for consistency.Wayne Davison2009-09-121-23/+24
|
* Fixed an ACL/xattr corruption issue where the --backup option could causeWayne Davison2009-04-101-1/+37
| | | | rsync to associate the wrong ACL/xattr information with received files.
* Don't try to simplify an ACL that has a mask w/o any named values.Wayne Davison2009-04-091-9/+3
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-1/+1
| | | | fine-grained output control (in addition to the coarse -v).
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Added a default to the new switch in str_acl_type().Wayne Davison2008-02-231-0/+2
|
* Tweaked the ACL type-names returned by str_acl_type()Wayne Davison2008-02-231-4/+12
| | | | so that error messages are a little clearer.
* Made some user-/group-name pointers "const".Wayne Davison2007-12-291-1/+1
|
* New logging categories added to allow differentiation betweenWayne Davison2007-11-221-13/+14
| | | | | transfer errors, normal errors, and warnings. New messages are translated into old FERROR/FINFO categories for older protocols.
* If the xattr data is bogus in get_rsync_acl(), free the buffer.Wayne Davison2007-11-051-1/+3
|
* Simplified a SMB_ACL_NEED_SORT conditional because some preprocessorsWayne Davison2007-10-051-7/+4
| | | | couldn't handle an #if embedded in a macro.
* When running with --fake-super, get/put ACLs from/to an xattr and don'tWayne Davison2007-09-291-8/+77
| | | | range-check the incoming values.
* Added OS X ACL support, using slightly tweaked sys_acl_*()Wayne Davison2007-09-281-45/+37
| | | | functions.
* Changed "statx" to "stat_x" to try to work around a build problem on AIX.Wayne Davison2007-09-231-8/+8
|
* Got rid of some unneeded externs.Wayne Davison2007-09-231-1/+0
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Use the latest F_DIR_*() defines (whose names were tweaked).Wayne Davison2007-07-081-3/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* - Unified the formerly separate user & group name-lists into a singleWayne Davison2007-05-211-160/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | name-list. On POSIX systems, this list will be sorted with the user names first, so the code will work essentially the same way it did before for the currently supported OSes. However, the code will now more easily support non-POSIX ACL setups such as (hopefully) the one used in OS X. - Increased the (potentially) available access-bit storage for name elements from 3 to 31 bits. For non-name elements, the access bits now have the potential to store 7 bits instead of 3. (All the current POSIX implementations still error-check their values at 3 bits, but this will allow adding non-POSIX ACL setups more easily.) - The protocol that transmits the ACL information was changed to send names in a single list, and to use {read,write}_varint() functions instead of {read,write}_byte(). This supports sending access-bit values up to 32-bits (minus any bits reserved for xmit flags). - The construction of the internal access-bit value was moved into the lib/sysacls.c code, so that it could be handled in an appropriate manner for each OS. (Aside: the code still does not support transmitting incompatible ACL information between systems, but I envision improving --fake-super to store the ACL information that is received as xattr information, and this would allow a system that supports extended attributes to backup a source system that had an incompatible ACL method.)
* - Fixed a bug in the match_racl_ids() function's iteration.Wayne Davison2007-05-201-13/+14
| | | | | - Fixed a bug with preserving a group ID in an ACL when running as a non-super user that the user is not a member of.
* 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-53/+20
| | | | that converts the uids & gids in a loop.
* Tweaked an error message and a comment.Wayne Davison2007-04-071-3/+2
|
* We now compile on systems where ENOTSUP is not defined.Wayne Davison2007-03-111-1/+3
|
* Silence a compiler warning about a printf() %d mismatch.Wayne Davison2007-03-111-2/+1
|
* The ACL support has arrived! This version has a brand new protocolWayne Davison2007-03-111-0/+1085
that makes it incompatible with all prior versions. A patch will be provided to allow talking with older (patched) rsync versions.