blob: 2e4ac55cf164d7f8798ca416b8cdc1b6f7e97876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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
|