Blame test/utf8-filenames.test
|
rpm-build |
0a0c83 |
+Test the setfacl --restore with utf8 paths.
|
|
rpm-build |
0a0c83 |
+Regression test: https://bugzilla.redhat.com/show_bug.cgi?id=183181
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
The utf string UPATH is 250 bytes long and is repeated 4 times to create the
|
|
rpm-build |
0a0c83 |
path that setfacl will use. This size should work on systems with a small 255
|
|
rpm-build |
0a0c83 |
NAME_MAX.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ export UPATH="官官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話官話話官話官話官話>官話官話話官話官"
|
|
rpm-build |
0a0c83 |
$ mkdir -p $UPATH/$UPATH/$UPATH
|
|
rpm-build |
0a0c83 |
$ touch $UPATH/$UPATH/$UPATH/$UPATH
|
|
rpm-build |
0a0c83 |
$ getfacl $UPATH/$UPATH/$UPATH/$UPATH > utf8-filenames.acl
|
|
rpm-build |
0a0c83 |
$ setfacl --restore=utf8-filenames.acl
|
|
rpm-build |
0a0c83 |
$ rm -R $UPATH
|
|
rpm-build |
0a0c83 |
$ rm utf8-filenames.acl
|