diff options
author | Kamil Dudka <kdudka@redhat.com> | 2013-10-31 19:24:35 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2013-11-01 12:06:01 +0100 |
commit | fb071c302b8cad8837bc1e57407dc3ffa14d3f99 (patch) | |
tree | 66e64bbd453e5f7b7bff5b41cc77517890e1d4f1 /test | |
parent | 3f079d4e0512c9a241fb23c56a0421441c83621e (diff) | |
download | acl-fb071c302b8cad8837bc1e57407dc3ffa14d3f99.tar.gz |
libacl: fix SIGSEGV of getfacl -e on overly long group name
We simply make sure that at least one tab is used for indentation.
Diffstat (limited to 'test')
-rw-r--r-- | test/root/getfacl.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/root/getfacl.test b/test/root/getfacl.test new file mode 100644 index 0000000..f84e25d --- /dev/null +++ b/test/root/getfacl.test @@ -0,0 +1,17 @@ +Make sure that getfacl always adds at least one space between the permissions +in an acl entry and the effective permissions comment. + + $ umask 022 + $ mkdir d + $ groupadd loooooooooooooooooooooooonggroup + $ setfacl -dm group:loooooooooooooooooooooooonggroup:rwx d + $ getfacl -cde d + > user::rwx + > group::r-x #effective:r-x + > group:loooooooooooooooooooooooonggroup:rwx #effective:rwx + > mask::rwx + > other::r-x + > + + $ groupdel loooooooooooooooooooooooonggroup + $ rm -r d |