RHEL 5 NFSv4 ACLs cannot be set properly using pipe if empty fields exist in the output of nfs4_getfacl
Issue
- nfs4 acls cannot be set properly with pipe if empty fields exists.
-
nfs4_getfacl foo | nfs4_setfacl -S - bar gives the following error when empty field exists in 'nfs4_getfacl foo':
# nfs4_getfacl foo
A::OWNER@:rwaxtTcCy
D::OWNER@:
A:g:GROUP@:rtcy
D:g:GROUP@:waxTC
A::EVERYONE@:rtcy
D::EVERYONE@:waxTC# nfs4_getfacl foo | nfs4_setfacl --set-file=- bar
Scanning ACE string 'D::OWNER@:' failed.
Failed while inserting ACE(s).
Environment
- Red Hat Enterprise Linux 5.4 (NFS Server)
- Kernel 2.6.18-164.11.1.el5
- NFSv4 ACLs
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.