diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-05-08 23:39:35 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-05-09 06:07:06 +0200 |
commit | e09f05731d734090a31b97082bcbb3933380bf76 (patch) | |
tree | 4ec58ff8917e4c31695f51a8a964166664608800 /source3/lib | |
parent | fc4c06f284d88b6c1997768dd448e2dac80739cb (diff) | |
download | samba-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.c | 5 |
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) |