#! /bin/sh
# bunzip-er

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/etc/news/bin/config}

PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK

case "$1" in
-c)	# oh my, recursive loop somehow...
	(
		echo "$NEWSBIN/decompressors/bunzip2, attempting to invoke the"
		echo "real bunzip2, invoked itself somehow."
	) | report -u 'news bunzip2 PATH misconfigured'
	exit 1
	;;
esac

exec bunzip2 -c
