summaryrefslogtreecommitdiff
path: root/libacl
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-06-22 19:57:48 +0200
committerAndreas Gruenbacher <agruen@suse.de>2009-06-22 20:50:36 +0200
commit6928165c52fe3a21829403c1eda93fbc5693f35a (patch)
tree2936504e9b1a961f53520fa6c20d85db70cbbc26 /libacl
parent4383573ac7e0b6c8ddc087323c1cd166706e024c (diff)
downloadacl-6928165c52fe3a21829403c1eda93fbc5693f35a.tar.gz
Stop quoting nonprintable characters in the getfacl output
What is printable or not depends on the locale settings, and getfacl often gets it wrong. We still need to quote a few special characters like newlines so that setfacl can always parse getfacl's output.
Diffstat (limited to 'libacl')
-rw-r--r--libacl/__acl_to_any_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libacl/__acl_to_any_text.c b/libacl/__acl_to_any_text.c
index 22abc97..a4f9c34 100644
--- a/libacl/__acl_to_any_text.c
+++ b/libacl/__acl_to_any_text.c
@@ -160,7 +160,7 @@ acl_entry_to_any_str(const acl_entry_t entry_d, char *text_p, ssize_t size,
str = NULL;
else
str = quote(user_name(
- entry_obj_p->eid.qid));
+ entry_obj_p->eid.qid), ":, \t\n\r");
if (str != NULL) {
strncpy(text_p, str, size);
ADVANCE(strlen(str));
@@ -183,7 +183,7 @@ acl_entry_to_any_str(const acl_entry_t entry_d, char *text_p, ssize_t size,
str = NULL;
else
str = quote(group_name(
- entry_obj_p->eid.qid));
+ entry_obj_p->eid.qid), ":, \t\n\r");
if (str != NULL) {
strncpy(text_p, str, size);
ADVANCE(strlen(str));