mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-22 15:15:36 +02:00
31 lines
409 B
Bash
Executable File
31 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "$VERBOSE" = yes; then
|
|
set -x
|
|
chmod --version
|
|
fi
|
|
|
|
tmp=eq-x-$$
|
|
trap "rm -rf $tmp" 0 1 2 3 15
|
|
|
|
framework_failure=0
|
|
|
|
rm -f $tmp
|
|
> $tmp
|
|
chmod 444 $tmp || framework_failure=1
|
|
|
|
if test $framework_failure = 1; then
|
|
echo 'failure in testing framework'
|
|
exit 1
|
|
fi
|
|
|
|
umask 005
|
|
chmod =x $tmp
|
|
case "`ls -l $tmp`" in
|
|
---x--x---*) fail=0 ;;
|
|
*) fail=1; ls -l $tmp ;;
|
|
esac
|
|
|
|
rm -f $tmp
|
|
exit $fail
|