summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2009-02-09 01:02:38 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-02-23 02:38:39 +0100
commit38171bead8961fe719395845533328130269bb4b (patch)
tree8ac281be386cacc0ea748f5028740fd33f1da670 /test
parent3c9bbac3a209dba51a8751e5b2c21d64f1d05fc9 (diff)
downloadacl-38171bead8961fe719395845533328130269bb4b.tar.gz
acl: fix setfacl for long utf8 filenames
Resolved Red Hat bugs: rh#183181 - Bad: utf8 long filenames - invalid argument rh#287701 - PATH_MAX patch seems incomplete From: Andrey <afletdinov@dc.baikal.ru> From: Thomas Woerner <twoerner@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Acked-by: Brandon Philips <bphilips@suse.de>
Diffstat (limited to 'test')
-rw-r--r--test/utf8-filenames.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/utf8-filenames.test b/test/utf8-filenames.test
new file mode 100644
index 0000000..dae0308
--- /dev/null
+++ b/test/utf8-filenames.test
@@ -0,0 +1,14 @@
++Test the setfacl --restore with utf8 paths.
++Regression test: https://bugzilla.redhat.com/show_bug.cgi?id=183181
+
+The utf string UPATH is 250 bytes long and is repeated 4 times to create the
+path that setfacl will use. This size should work on systems with a small 255
+NAME_MAX.
+
+ $ export UPATH="官官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話話官話官話官話>官話官話話官話官"
+ $ mkdir -p $UPATH/$UPATH/$UPATH
+ $ touch $UPATH/$UPATH/$UPATH/$UPATH
+ $ getfacl $UPATH/$UPATH/$UPATH/$UPATH > utf8-filenames.acl
+ $ setfacl --restore=utf8-filenames.acl
+ $ rm -R $UPATH
+ $ rm utf8-filenames.acl