Equipped output of lsl with '+' perm if ACL is present
This commit is contained in:
@ -5521,6 +5521,7 @@ int Xorriso_ls_filev(struct XorrisO *xorriso, char *wd,
|
||||
IsoImage *volume;
|
||||
char sfe[5*SfileadrL], sfe2[5*SfileadrL], path[SfileadrL];
|
||||
char link_target[SfileadrL], *rpt, **dfilev= NULL;
|
||||
char *a_text= NULL, *d_text= NULL;
|
||||
off_t size;
|
||||
struct stat stbuf;
|
||||
|
||||
@ -5597,7 +5598,18 @@ int Xorriso_ls_filev(struct XorrisO *xorriso, char *wd,
|
||||
continue;
|
||||
link_target[0]= 0;
|
||||
if((flag&5)==1) { /* -ls_l */
|
||||
ret= Xorriso_format_ls_l(xorriso, &stbuf, 1);
|
||||
|
||||
#ifdef Xorriso_with_aaiP
|
||||
iso_node_get_acl_text(node, &a_text, &d_text, 16);
|
||||
#endif
|
||||
|
||||
ret= Xorriso_format_ls_l(xorriso, &stbuf,
|
||||
1 | ((a_text != NULL || d_text != NULL) << 1));
|
||||
|
||||
#ifdef Xorriso_with_aaiP
|
||||
iso_node_get_acl_text(node, &a_text, &d_text, 1 << 15);
|
||||
#endif
|
||||
|
||||
if(ret<=0)
|
||||
continue;
|
||||
if(LIBISO_ISLNK(node)) {
|
||||
|
Reference in New Issue
Block a user