Displaying "+" with lslx if ACL is detected
This commit is contained in:
@ -9151,3 +9151,34 @@ ex:;
|
||||
return(ret);
|
||||
}
|
||||
|
||||
/*
|
||||
@param flag
|
||||
Bitfield for control purposes
|
||||
bit0= get default ACL rather than access ACL
|
||||
bit4= set *text = NULL and return 2
|
||||
if the ACL matches st_mode permissions.
|
||||
bit5= in case of symbolic link: inquire link target
|
||||
bit15= free text and return 1
|
||||
@return
|
||||
1 ok
|
||||
2 ok, trivial ACL found while bit4 is set, *text is NULL
|
||||
0 no ACL manipulation adapter available
|
||||
-1 failure of system ACL service (see errno)
|
||||
-2 attempt to inquire ACL of a symbolic link without bit4 or bit5
|
||||
resp. with no suitable link target
|
||||
*/
|
||||
int Xorriso_local_getfacl(struct XorrisO *xorriso, char *disk_path,
|
||||
char **text, int flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef Xorriso_with_aaiP
|
||||
ret= iso_local_get_acl_text(disk_path, text,
|
||||
flag & (1 | 16 | 32 | (1 << 15)));
|
||||
#else
|
||||
ret= 0;
|
||||
#endif
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user