The chmod/symlinks test fails on:
  - Alpine Linux 3.18,
  - macOS 12.5,
  - FreeBSD 14.0,
  - NetBSD 9.3 and 10.0-rc4,
  - OpenBSD 7.4,
  - Solaris 11.4,
  - AIX 7.1 and 7.3.1.

Find attached the test-suite.log files.
FAIL: tests/chmod/symlinks
==========================

+ initial_cwd_=/home/bruno/coreutils-9.4.170-7b206/build
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /home/bruno/coreutils-9.4.170-7b206/build gt-symlinks.sh.XXXX
+ destdir_=/home/bruno/coreutils-9.4.170-7b206/build
+ template_=gt-symlinks.sh.XXXX
+ MAX_TRIES_=4
+ destdir_slash_=/home/bruno/coreutils-9.4.170-7b206/build/
+ unset TMPDIR
+ d=/home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ :
+ test -d /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ ls -dgo /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ perms='drwx--S--- 2 4096 Mar 24 14:14 /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m'
+ :
+ echo /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ return
+ test_dir_=/home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ cd /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ srcdir=../..
+ builddir=..
+ export srcdir builddir
+ gl_init_sh_nl_='
'
+ IFS=' 	
'
+ expr 1 + 128
+ eval 'trap '"'"'Exit 129'"'"' 1'
+ trap 'Exit 129' 1
+ expr 2 + 128
+ eval 'trap '"'"'Exit 130'"'"' 2'
+ trap 'Exit 130' 2
+ expr 3 + 128
+ eval 'trap '"'"'Exit 131'"'"' 3'
+ trap 'Exit 131' 3
+ expr 13 + 128
+ eval 'trap '"'"'Exit 141'"'"' 13'
+ trap 'Exit 141' 13
+ expr 15 + 128
+ eval 'trap '"'"'Exit 143'"'"' 15'
+ trap 'Exit 143' 15
+ saved_IFS=' 	
'
+ IFS=:
+ new_PATH=
+ sep_=
+ test -d /home/bruno/coreutils-9.4.170-7b206/build/src/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src
+ sep_=:
+ test -d /home/bruno/bin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin
+ sep_=:
+ test -d /usr/local/bin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin
+ sep_=:
+ test -d /usr/sbin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin
+ sep_=:
+ test -d /usr/bin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin:/usr/bin
+ sep_=:
+ test -d /sbin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
+ sep_=:
+ test -d /bin/.
+ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ sep_=:
+ IFS=' 	
'
+ PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ abs_path_dir_=/home/bruno/coreutils-9.4.170-7b206/build/./src
+ PATH=/home/bruno/coreutils-9.4.170-7b206/build/./src:/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ create_exe_shims_ /home/bruno/coreutils-9.4.170-7b206/build/./src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ chmod
+ require_built_ chmod
+ skip_=no
+ test no '=' yes
+ test yes '=' yes
+ local i
+ env chmod --version
chmod (GNU coreutils) 9.4.170-7b206
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
+ mkdir -p a/b a/c
+ touch a/b/file a/c/file
+ ln -s foo a/dangle
+ ln -s ../b/file a/c/link
+ ln -s b a/dirlink
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -R a/c
+ ls -l a/b
+ count_755 0
+ wc -l
+ grep rwxr-xr-x out
+ test 0 '=' 0
+ ls -lR a/c
+ count_755 1
+ wc -l
+ grep rwxr-xr-x out
+ test 1 '=' 1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -LR a/c
+ ls -ld a/c a/c/file a/b/file
+ count_755 3
+ wc -l
+ grep rwxr-xr-x out
+ test 2 '=' 3
+ cat out
-rwxr-xr-x 1 bruno bruno    0 Mar 24 14:14 a/b/file
drwxr-sr-x 2 bruno bruno 4096 Mar 24 14:14 a/c
-rwxr-xr-x 1 bruno bruno    0 Mar 24 14:14 a/c/file
+ fail=1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -RP a/c/
+ ls -l a/b
+ count_755 0
+ wc -l
+ grep rwxr-xr-x out
+ test 0 '=' 0
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --dereference a/c/link
+ ls -l a/b
+ count_755 1
+ wc -l
+ grep rwxr-xr-x out
+ test 1 '=' 1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --no-dereference a/c/link
+ ls -l a/b
+ count_755 0
+ wc -l
+ grep rwxr-xr-x out
+ test 0 '=' 0
+ chmod 755 --no-dereference a/dangle
+ chmod 755 --no-dereference a/dangle
+ chmod 755 --no-dereference a/dangle
+ returns_ 1 chmod 755 a/dangle
+ returns_ 1 chmod 755 --deref a/dangle
+ returns_ 1 chmod 755 -R a/dangle
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test  '=' yes
+ cd /home/bruno/coreutils-9.4.170-7b206/build
+ chmod -R u+rwx /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ rm -rf /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.yI5m
+ exit 1
FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

++ initial_cwd_=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /Users/haible/STORAGE/coreutils-9.4.170-7b206/build gt-symlinks.sh.XXXX
+++ case $# in
+++ destdir_=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build
+++ template_=gt-symlinks.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
+++ case $d in
+++ :
+++ test -d /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
++++ ls -dgo /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
+++ perms='drwx------ 2 64 Mar 24 06:21 /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o'
+++ case $perms in
+++ :
+++ echo /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
+++ return
++ test_dir_=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
++ cd /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ sep_=
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /Users/haible/bin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin:/bin
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin
++ sep_=:
++ for dir in '$PATH'
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ sep_=:
++ IFS=' 	
'
++ PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/./src
+ case $abs_path_dir_ in
+ PATH=/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/./src:/Users/haible/STORAGE/coreutils-9.4.170-7b206/build/src:/Users/haible/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ create_exe_shims_ /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ chmod
+ require_built_ chmod
+ skip_=no
+ for i in '"$@"'
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in '$*'
+ env chmod --version
chmod (GNU coreutils) 9.4.170-7b206
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
+ mkdir -p a/b a/c
+ touch a/b/file a/c/file
+ ln -s foo a/dangle
+ ln -s ../b/file a/c/link
+ ln -s b a/dirlink
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -R a/c
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ ls -lR a/c
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 2 = 1
+ fail=1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -LR a/c
+ ls -ld a/c a/c/file a/b/file
+ count_755 3
++ grep rwxr-xr-x out
++ wc -l
+ test 3 = 3
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -RP a/c/
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --dereference a/c/link
+ ls -l a/b
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 1 = 1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --no-dereference a/c/link
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ for noderef in ''\''-h'\''' ''\''-RP'\''' ''\''-P'\'''
+ chmod 755 --no-dereference a/dangle
+ for noderef in ''\''-h'\''' ''\''-RP'\''' ''\''-P'\'''
+ chmod 755 --no-dereference a/dangle
+ for noderef in ''\''-h'\''' ''\''-RP'\''' ''\''-P'\'''
+ chmod 755 --no-dereference a/dangle
+ for deref in ''\'''\''' ''\''--deref'\''' ''\''-R'\'''
+ returns_ 1 chmod 755 a/dangle
+ for deref in ''\'''\''' ''\''--deref'\''' ''\''-R'\'''
+ returns_ 1 chmod 755 --deref a/dangle
+ for deref in ''\'''\''' ''\''--deref'\''' ''\''-R'\'''
+ returns_ 1 chmod 755 -R a/dangle
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /Users/haible/STORAGE/coreutils-9.4.170-7b206/build
+ chmod -R u+rwx /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
+ rm -rf /Users/haible/STORAGE/coreutils-9.4.170-7b206/build/gt-symlinks.sh.wv4o
+ exit 1
FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

++ initial_cwd_=/home/bruno/coreutils-9.4.170-7b206/build
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/bruno/coreutils-9.4.170-7b206/build gt-symlinks.sh.XXXX
+++ case $# in
+++ destdir_=/home/bruno/coreutils-9.4.170-7b206/build
+++ template_=gt-symlinks.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/bruno/coreutils-9.4.170-7b206/build/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
+++ case $d in
+++ :
+++ test -d /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
++++ ls -dgo /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
+++ perms='drwx------ 2 512 Mar 24 12:50 /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO'
+++ case $perms in
+++ :
+++ echo /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
+++ return
++ test_dir_=/home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
++ cd /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ sep_=
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/bruno/coreutils-9.4.170-7b206/build/src/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/bruno/bin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/local/sbin/.
++ new_PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
++ sep_=:
++ IFS=' 	
'
++ PATH=/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/bruno/coreutils-9.4.170-7b206/build/./src
+ case $abs_path_dir_ in
+ PATH=/home/bruno/coreutils-9.4.170-7b206/build/./src:/home/bruno/coreutils-9.4.170-7b206/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
+ create_exe_shims_ /home/bruno/coreutils-9.4.170-7b206/build/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ chmod
+ require_built_ chmod
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env chmod --version
chmod (GNU coreutils) 9.4.170-7b206
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
+ mkdir -p a/b a/c
+ touch a/b/file a/c/file
+ ln -s foo a/dangle
+ ln -s ../b/file a/c/link
+ ln -s b a/dirlink
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -R a/c
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ ls -lR a/c
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 2 = 1
+ fail=1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -LR a/c
+ ls -ld a/c a/c/file a/b/file
+ count_755 3
++ grep rwxr-xr-x out
++ wc -l
+ test 3 = 3
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -RP a/c/
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --dereference a/c/link
+ ls -l a/b
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 1 = 1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --no-dereference a/c/link
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 --deref a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 -R a/dangle
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/bruno/coreutils-9.4.170-7b206/build
+ chmod -R u+rwx /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
+ rm -rf /home/bruno/coreutils-9.4.170-7b206/build/gt-symlinks.sh.Q3AO
+ exit 1
FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

++ initial_cwd_=/export/home/bruno/coreutils-9.4.170-7b206/build-64
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /export/home/bruno/coreutils-9.4.170-7b206/build-64 gt-symlinks.sh.XXXX
+++ case $# in
+++ destdir_=/export/home/bruno/coreutils-9.4.170-7b206/build-64
+++ template_=gt-symlinks.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/export/home/bruno/coreutils-9.4.170-7b206/build-64/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
+++ case $d in
+++ :
+++ test -d /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
++++ ls -dgo /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
+++ perms='drwx------ 2 2 Mar 24 14:32 /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1'
+++ case $perms in
+++ :
+++ echo /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
+++ return
++ test_dir_=/export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
++ cd /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ sep_=
++ for dir in $PATH
++ case "$dir" in
++ test -d /export/home/bruno/coreutils-9.4.170-7b206/build-64/src/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/xpg4/bin/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /export/home/bruno/prefix64/bin/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin
++ sep_=:
++ IFS=' 	
'
++ PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/export/home/bruno/coreutils-9.4.170-7b206/build-64/./src
+ case $abs_path_dir_ in
+ PATH=/export/home/bruno/coreutils-9.4.170-7b206/build-64/./src:/export/home/bruno/coreutils-9.4.170-7b206/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin
+ create_exe_shims_ /export/home/bruno/coreutils-9.4.170-7b206/build-64/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ chmod
+ require_built_ chmod
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env chmod --version
chmod (GNU coreutils) 9.4.170-7b206
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
+ mkdir -p a/b a/c
+ touch a/b/file a/c/file
+ ln -s foo a/dangle
+ ln -s ../b/file a/c/link
+ ln -s b a/dirlink
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -R a/c
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ ls -lR a/c
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 2 = 1
+ fail=1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -LR a/c
+ ls -ld a/c a/c/file a/b/file
+ count_755 3
++ grep rwxr-xr-x out
++ wc -l
+ test 3 = 3
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 -RP a/c/
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --dereference a/c/link
+ ls -l a/b
+ count_755 1
++ grep rwxr-xr-x out
++ wc -l
+ test 1 = 1
+ reset_modes
+ chmod 777 a/b a/c a/b/file a/c/file
+ chmod 755 --no-dereference a/c/link
+ ls -l a/b
+ count_755 0
++ grep rwxr-xr-x out
++ wc -l
+ test 0 = 0
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for noderef in '-h' '-RP' '-P'
+ chmod 755 --no-dereference a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 --deref a/dangle
+ for deref in '' '--deref' '-R'
+ returns_ 1 chmod 755 -R a/dangle
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /export/home/bruno/coreutils-9.4.170-7b206/build-64
+ chmod -R u+rwx /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
+ rm -rf /export/home/bruno/coreutils-9.4.170-7b206/build-64/gt-symlinks.sh.Thu1
+ exit 1
FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

FAIL tests/chmod/symlinks.sh (exit status: 1)
FAIL: tests/chmod/symlinks
==========================

FAIL tests/chmod/symlinks.sh (exit status: 1)

Reply via email to