]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix setting empty default ACL
authorYan, Zheng <zyan@redhat.com>
Wed, 11 May 2016 13:46:23 +0000 (21:46 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 11 May 2016 14:04:42 +0000 (22:04 +0800)
commit3c6b3d0b5a34961f8fcedb139c288016b02fc06c
treeceeaeb660fe9c9ffe3a04bc59c11e4e98e2305e3
parent2ab0707f57f98d28c1e2c1491a656ba116fe543f
client: fix setting empty default ACL

'cp -a ...' may call setxattr(..., "system.posix_acl_default",
"\2\0\0", 4, 0). The ACL xattr only include ACL header. Client
should remove ACL in this case.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/posix_acl.cc