align baselibs.conf as done on openSUSE
[platform/upstream/acl.git] / test / utf8-filenames.test
1 +Test the setfacl --restore with utf8 paths.
2 +Regression test: https://bugzilla.redhat.com/show_bug.cgi?id=183181
3
4 The utf string UPATH is 250 bytes long and is repeated 4 times to create the
5 path that setfacl will use. This size should work on systems with a small 255
6 NAME_MAX.
7
8        $ export UPATH="官官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話話官話官話官話>官話官話話官話官"
9        $ mkdir -p $UPATH/$UPATH/$UPATH
10        $ touch $UPATH/$UPATH/$UPATH/$UPATH
11        $ getfacl $UPATH/$UPATH/$UPATH/$UPATH > utf8-filenames.acl
12        $ setfacl  --restore=utf8-filenames.acl
13        $ rm -R $UPATH
14        $ rm utf8-filenames.acl