Wayne Davison
df6350a8b8
Avoid type-punned compiler warnings for the byteorder.h macros
...
by using inline functions for the 4-char <-> uint32 conversions.
2009-10-13 21:10:57 -07:00
Wayne Davison
2c1aa2efac
Need to use O_RDONLY in solaris sys_lremovexattr().
2009-09-03 15:25:55 -07:00
Wayne Davison
486ecd3d9c
Fix attropen() flags for writing an xattr on solaris.
2009-09-02 07:37:55 -07:00
Wayne Davison
17cc4c383b
Fix read_xattr() for solaris.
2009-09-01 12:11:32 -07:00
Wayne Davison
2523d0cc14
Allow Solaris sys_llistxattr() to return the list length when size == 0.
2009-08-15 06:43:06 -07:00
Wayne Davison
18bd04018d
Fix some variable references.
2009-08-15 06:27:19 -07:00
Wayne Davison
05a652d0b7
Some improvements to the solaris xattr routines.
...
Inspired by the patch to bug 6633.
2009-08-13 08:02:53 -07:00
Wayne Davison
049f8cbc8a
Initial version of xattr routines for Solaris.
2009-08-08 13:27:58 -07:00
Wayne Davison
134f97c9cc
Support an older AIX system that doesn't have ENOTSUP.
2009-05-14 11:23:38 -07:00
Wayne Davison
87755c6cea
Switch from inet_aton() to inet_pton() (since we supply a compatibility
...
function for the latter, it will always exist).
2009-05-14 11:22:37 -07:00
Wayne Davison
9411292489
Fixed a bunch of "warn_unused_result" compiler warnings.
2008-11-09 18:56:21 -08:00
Wayne Davison
9ddc2b64da
Fixed our supplied getnameinfo()'s ability to do a reverse lookup,
...
as reported in bug 5851.
2008-10-25 09:21:13 -07:00
Wayne Davison
5dd14f0c33
Split up the ifuncs.h file into 3 .h files.
2008-09-01 19:11:36 -07:00
Wayne Davison
adc2476fa2
Output numbers in 3-digit groups by default (e.g. 1,234,567).
...
Also improved the human-readable output functions, including
adding the ability to output negative numbers.
2008-09-01 13:27:11 -07:00
Wayne Davison
aacd188034
Fixed a potential alignment issue in the IRIX ACL code when allocating
...
the initial struct acl object. Also, cast mallocs to avoid warnings.
2008-07-22 08:31:17 -07:00
Wayne Davison
0566dc54b1
Use PTR_ADD for the new instances of void-pointer arithmetic.
2008-07-21 23:12:02 -07:00
Wayne Davison
fb01d1fb07
Changed the POOL_QALIGN flag to POOL_NO_QALIGN, reversing the setting
...
(making pools aligned by default). Added the missing code to make the
documented behavior of pool_free() with a NULL addr work. Updated the
pool_alloc.3 manpage.
2008-07-19 09:20:56 -07:00
Wayne Davison
51ce67d599
Improved the alignment code and changed POOL_APPEND to POOL_PREPEND.
2008-07-18 20:57:52 -07:00
Wayne Davison
3a8fad7805
Moving big_num() into lib/compat.c so tls.c can use it.
2008-07-17 16:59:59 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
85b057cccf
Check the return code from mbr_uid_to_uuid()/mbr_gid_to_uuid() so
...
that the user sees the right error if they failed.
2008-02-23 07:44:55 -08:00
Wayne Davison
87531e6302
Get rid of some compiler warnings in the AIX sysacls code.
2007-11-29 17:12:54 -08:00
Wayne Davison
1f41d42a91
Getting rid of all .cvsignore files.
2007-11-12 13:32:10 -08:00
Wayne Davison
1b411143e5
Got rid of a compiler warning.
2007-11-08 20:30:17 +00:00
Wayne Davison
9456434688
Some fixes for SCO in new getaddrinfo() code.
2007-11-08 14:54:58 +00:00
Wayne Davison
268da8167a
Use uint32, not uint32_t.
2007-11-08 01:31:58 +00:00
Wayne Davison
2213961e8f
Add back a define of "struct sockaddr_storage" for systems that
...
don't have it.
2007-11-08 01:10:34 +00:00
Wayne Davison
9f802c7294
A new version of the getaddrinfo code from the samba source.
2007-11-02 20:52:57 +00:00
Wayne Davison
14dfad3873
A couple tweaks to the AIX ACL code.
2007-10-05 20:47:18 +00:00
Wayne Davison
90c71caeb3
The hpux_count_obj() function should have been declared with a
...
void return type.
2007-10-05 02:30:39 +00:00
Wayne Davison
b0ca7d2500
Specify a better SMB_ACL_VALID_NAME_BITS value for OS X.
2007-09-29 16:06:40 +00:00
Wayne Davison
5ebb7935d2
Tweaked a variable name.
2007-09-29 04:35:26 +00:00
Wayne Davison
d417c51669
- Added OS X ACL support.
...
- Simplified some of the ge/set calling sequences.
- Got rid of SMB_ACL_PERMSET_T.
2007-09-28 21:54:11 +00:00
Wayne Davison
65a22a5ff7
In pool_free_old(), one code path was not clearing a "next" pointer,
...
so the code could try to free an extent twice in certain circumstances.
2007-08-21 05:04:02 +00:00
Wayne Davison
a0f70237f5
Fix pool_create() to honor the POOL_INTERN flag.
...
(Thanks to Brion Vibber.)
2007-08-21 04:54:30 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
8b498b9f1a
Decided against the last change.
2007-06-06 15:43:34 +00:00
Wayne Davison
c04af69701
Allow a NULL address to be passed to pool_free_old() to indicate that
...
it should free all old mem and reset to an empty state.
2007-06-06 15:38:31 +00:00
Wayne Davison
676e604135
Added pool_free_old() and pool_boundary() functions to add a way to
...
free all wholly affected extents older than a particular point in time.
2007-05-29 04:19:41 +00:00
Wayne Davison
3fac8ca8d1
Tweaked a variable and a label to make them less confusing.
2007-05-29 02:47:23 +00:00
Wayne Davison
33766a8daa
Improvements to increase clarity, fix misstatements, add missing
...
punctuation, and fix some typos.
2007-05-29 02:46:44 +00:00
Wayne Davison
e3d27df444
- Fixed a bug where a pool_free() on the most-recently allocated pool
...
item was trying to make that memory available to the pool, but it
failed to adjust the right variable.
- Fixed a bug in pool_free() where the return of the entire live
extent back to unallocated status did not obey POOL_CLEAR.
- Use the new() and new_array() functions instead of malloc().
- Changed the sqew variable to skew.
- Some other minor formatting tweaks.
2007-05-29 00:52:08 +00:00
Wayne Davison
898fab2577
Got rid of superfluous acl_clear_perms() call that Antti Tapaninen
...
pointed out.
2007-05-25 14:16:57 +00:00
Wayne Davison
3d0a159d96
Added a comment to a shared iterator to avoid a warning from IBM's checker.
2007-05-22 05:58:59 +00:00
Wayne Davison
63186ec077
Fixed a problem in a couple OS's sys_acl_get_access_bits() functions.
2007-05-21 02:09:45 +00:00
Wayne Davison
043ef55b22
- Define what the valid access bits are for a name element and a
...
non-name element.
- Set a define when the OS needs the name-list sorted.
- Got rid of the permset-related defines.
- Got rid of some function prototypes that rsync doesn't need.
- Got rid of the defines for the do-nothing ACL code.
2007-05-21 01:04:37 +00:00
Wayne Davison
a30dcbc0a8
- Added a function to get/set all the access-bit values with a single
...
call. This allows the per-OS compatibility code to construct the
value with however many bits are supported by each OS.
- Removed several functions that rsync doesn't (and won't) need.
- Got rid of the do-nothing ACL code (the ACL code in rsync should be
disabled on a system that we can't support).
2007-05-21 01:04:34 +00:00
Wayne Davison
1c702303eb
Moved the header info from smb_acls.h into lib/sysacls.h.
2007-04-24 08:11:02 +00:00
Wayne Davison
16edf86595
The improved --xattrs option is landing on the trunk.
2007-04-07 17:22:25 +00:00