ffeed88842
The FFLAGS and OFLAGS now work correctly also for files opened with O_EXEC. Except possibly fuse, the other users pass values without O_EXEC set. fuse appears to assume O_EXEC is handled correctly. Although F_SETFL may not be commonly used for execute-only file descriptors, F_GETFL may be useful to find the access mode.
11 lines
123 B
Bash
11 lines
123 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
cd `dirname $0`
|
|
|
|
executable=`basename $0 .t`
|
|
|
|
make $executable 2>&1 > /dev/null
|
|
|
|
exec ./$executable
|