Sha256: a2989cfc631fafcdcd871ef29edc840030e94ad19542ae34da4403b17cb4b0c0

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

# Copyright: 2015 Masatake YAMATO
# License: GPL-2

CTAGS=$1

. ../utils.sh
exit_if_no_coproc ${CTAGS}

X=BACKENDCMD.tmp
touch ${X}
chmod g+xs ${X}

if [ $(ls -l ${X} | sed -e 's/......\(.\).*/\1/') != 's' ]; then
    echo "no setgid on the system"
    exit 77
fi

${CTAGS} --quiet --options=NONE --langdef=foo --xcmd-foo=./${X} --list-kinds | grep foo
S=$?

if [ "$S" = 0 ]; then
    rm $X
fi

exit $S

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Tmain/xcmd-dont-run-setgid-executable.d/run.sh
ctags.rb-1.1.3 ext/vendor/ctags/Tmain/xcmd-dont-run-setgid-executable.d/run.sh