Made -getfacl file name escaping more similar to shell command behavior

This commit is contained in:
2009-01-28 19:01:47 +00:00
parent b0aae62aff
commit beac765f7b
4 changed files with 71 additions and 18 deletions

View File

@ -654,6 +654,13 @@ int Sfile_count_components(char *path, int flag);
*/
int Sfile_type(char *filename, int flag);
/* @param flag bit0= only encode inside quotes
bit1= encode < 32 outside quotes except 7, 8, 9, 10, 12, 13
bit2= encode in any case above 126
bit3= encode in any case shellsafe:
<=42 , 59, 60, 62, 63, 92, 94, 96, >=123
*/
int Sfile_bsl_encoder(char **result, char *text, int flag);
char *Text_shellsafe(char *in_text, char *out_text, int flag);