File: utf8-filenames.test

package info (click to toggle)
acl 2.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,212 kB
  • sloc: ansic: 5,916; sh: 5,379; perl: 279; makefile: 49; sed: 16
file content (14 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
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