1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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
This commit is contained in:
Andrew Bartlett 2012-05-08 23:39:35 +10:00
parent fc4c06f284
commit e09f05731d

View File

@ -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)