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