summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-08 23:39:35 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-09 06:07:06 +0200
commite09f05731d734090a31b97082bcbb3933380bf76 (patch)
tree4ec58ff8917e4c31695f51a8a964166664608800 /source3/lib
parentfc4c06f284d88b6c1997768dd448e2dac80739cb (diff)
downloadsamba-e09f05731d734090a31b97082bcbb3933380bf76.tar.gz
samba-e09f05731d734090a31b97082bcbb3933380bf76.tar.bz2
samba-e09f05731d734090a31b97082bcbb3933380bf76.zip
s3-lib/sysacls: Do not include an embedded \0 between ACL entries in sys_acl_to_text()
This makes it possible to print the entire string again. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed May 9 06:07:06 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sysacls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index b0a3479a62..592aef6d43 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -238,8 +238,9 @@ char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p)
}
}
- slprintf(&text[len], nbytes-1, "%s:%s:%s\n", tag, id, perms);
- len += nbytes - 1;
+
+ slprintf(&text[len], nbytes, "%s:%s:%s\n", tag, id, perms);
+ len += (nbytes - 1);
}
if (len_p)