"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libisofs/aaip_0_2.c" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.tar.gz

About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.

aaip_0_2.c  (xorriso-1.5.2):aaip_0_2.c  (xorriso-1.5.4)
skipping to change at line 277 skipping to change at line 277
@param result_len Number of bytes in the resulting value @param result_len Number of bytes in the resulting value
@param result *result will point to the start of the result string. @param result *result will point to the start of the result string.
This is malloc() memory which needs to be freed when This is malloc() memory which needs to be freed when
no longer needed no longer needed
@param flag Bitfield for control purposes @param flag Bitfield for control purposes
bit0= count only bit0= count only
bit1= use numeric qualifiers rather than names bit1= use numeric qualifiers rather than names
bit2= this is a default ACL, prepend SWITCH_MARK bit2= this is a default ACL, prepend SWITCH_MARK
bit3= check for completeness of list and eventually bit3= check for completeness of list and eventually
fill up with entries deduced from st_mode fill up with entries deduced from st_mode
bit4= be verbous about failure causes bit4= be verbose about failure causes
@return >0 means ok @return >0 means ok
<=0 means error <=0 means error
-1= out of memory -1= out of memory
-2= program error with prediction of result size -2= program error with prediction of result size
-3= error with conversion of name to uid or gid -3= error with conversion of name to uid or gid
ISO_AAIP_ACL_MULT_OBJ= multiple entries of user::, group::, other:: ISO_AAIP_ACL_MULT_OBJ= multiple entries of user::, group::, other::
*/ */
int aaip_encode_acl(char *acl_text, mode_t st_mode, int aaip_encode_acl(char *acl_text, mode_t st_mode,
size_t *result_len, unsigned char **result, int flag) size_t *result_len, unsigned char **result, int flag)
{ {
skipping to change at line 357 skipping to change at line 357
/* /*
@param result_size Number of bytes to store result @param result_size Number of bytes to store result
@param result Pointer to the start of the result string. @param result Pointer to the start of the result string.
@param flag Bitfield for control purposes @param flag Bitfield for control purposes
bit0= count only, do not really produce bytes bit0= count only, do not really produce bytes
bit1= use numeric qualifiers bit1= use numeric qualifiers
bit2= this is a default ACL, prepend SWITCH_MARK 1 bit2= this is a default ACL, prepend SWITCH_MARK 1
bit3= check for completeness of list and eventually bit3= check for completeness of list and eventually
fill up with entries deduced from st_mode fill up with entries deduced from st_mode
bit4= be verbous about failure causes bit4= be verbose about failure causes
@return >=0 number of bytes produced resp. counted @return >=0 number of bytes produced resp. counted
<0 means error <0 means error
-1: result size overflow -1: result size overflow
-2: conversion errror with user name or group name -2: conversion error with user name or group name
ISO_AAIP_ACL_MULT_OBJ: multiple entries of user::, group::, other:: ISO_AAIP_ACL_MULT_OBJ: multiple entries of user::, group::, other::
*/ */
static ssize_t aaip_encode_acl_text(char *acl_text, mode_t st_mode, static ssize_t aaip_encode_acl_text(char *acl_text, mode_t st_mode,
size_t result_size, unsigned char *result, int flag) size_t result_size, unsigned char *result, int flag)
{ {
char *rpt, *npt, *cpt; char *rpt, *npt, *cpt;
int qualifier= 0, perms, type, i, qualifier_len= 0, num_recs, needed= 0, ret; int qualifier= 0, perms, type, i, qualifier_len= 0, num_recs, needed= 0, ret;
unsigned int has_u= 0, has_g= 0, has_o= 0, has_m= 0, is_trivial= 1; unsigned int has_u= 0, has_g= 0, has_o= 0, has_m= 0, is_trivial= 1;
uid_t uid, huid; uid_t uid, huid;
gid_t gid, hgid; gid_t gid, hgid;
skipping to change at line 1917 skipping to change at line 1917
return(2); return(2);
} }
/* Obtain the resulting attributes when aaip_decode_attrs() indicates to /* Obtain the resulting attributes when aaip_decode_attrs() indicates to
be done or to have the maximum possible amount of result ready. be done or to have the maximum possible amount of result ready.
The returned data objects finally have to be freed by a call with flag The returned data objects finally have to be freed by a call with flag
bit 15. bit 15.
@param handle The decoding context created by aaip_decode_attrs() @param handle The decoding context created by aaip_decode_attrs()
@param num_attrs Will return the number of name-value pairs @param num_attrs Will return the number of name-value pairs
@param names Will return an array of pointers to 0-terminated names @param names Will return an array of pointers to 0-terminated names
@param value_lengths Will return an arry with the lenghts of values @param value_lengths Will return an array with the lengths of values
@param values Will return an array of pointers to 8-bit values @param values Will return an array of pointers to 8-bit values
@param flag Bitfield for control purposes @param flag Bitfield for control purposes
bit15= free memory of names, value_lengths, values bit15= free memory of names, value_lengths, values
@return <0 error @return <0 error
0 no attribute list ready 0 no attribute list ready
1 ok 1 ok
*/ */
int aaip_get_decoded_attrs(struct aaip_state **handle, size_t *num_attrs, int aaip_get_decoded_attrs(struct aaip_state **handle, size_t *num_attrs,
char ***names, size_t **value_lengths, char ***values, char ***names, size_t **value_lengths, char ***values,
int flag) int flag)
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)