diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-05 11:31:29 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-05 11:48:35 +0100 |
commit | 101a30a2a0f726ad0d4c4541b4e77eab3a1b7aa7 (patch) | |
tree | 9100f6feae25fefbe0ac92f0663046aec0eee970 /cfg.mk | |
parent | 931e0f2a708965001857d60cedf1b1940389cbe6 (diff) | |
download | coreutils-101a30a2a0f726ad0d4c4541b4e77eab3a1b7aa7.tar.xz |
tests: adjust setfacl usage to accommodate Solaris 10
* cfg.mk (sc_prohibit_short_facl_mode_spec): New rule.
* tests/cp/acl: Extend setfacl mode spec to have length 3.
* tests/ls/slink-acl: Likewise.
* tests/mv/acl: Likewise.
Report and analysis by Bruno Haible.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -245,6 +245,15 @@ sc_prohibit_fail_0: halt='fail=0 initialization' \ $(_sc_search_regexp) +# The mode part of a setfacl -m option argument must be three bytes long. +# I.e., an argument of user:bin:rw or user:bin:r will make Solaris 10's +# setfacl reject it with: "Unrecognized character found in mode field". +# Use hyphens to give it a length of 3: "...:rw-" or "...:r--". +sc_prohibit_short_facl_mode_spec: + @prohibit='\<setfacl .*-m.*:.*:[rwx-]{1,2} ' \ + halt='setfacl mode string length < 3; extend with hyphen(s)' \ + $(_sc_search_regexp) + # Ensure that "stdio--.h" is used where appropriate. sc_require_stdio_safer: @if $(VC_LIST_EXCEPT) | grep -l '\.[ch]$$' > /dev/null; then \ |