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 . 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)