#!/bin/sh
#
#ident	"$Id: test4,v 1.1 2005/10/25 22:38:34 jmoyer Exp $"
#
# opendir() of offset paths which don't trigger
# an NFS mount.
# We don't check MNTTAB for a new filesystem,
# since no new filesystem is mounted.
#

NAME=`basename $0`
InitFile="../src/tests.init"

if [ "x${SERVER1}" = "x" ]; then
	if [ -f ${InitFile} ]; then
		. ${InitFile}
	fi
fi

if [ x$VERBOSE = x ]; then
	opendir ${AUTOMAP_DIR}/dat/${NAME} autofs 0 > /dev/null
else
	opendir ${AUTOMAP_DIR}/dat/${NAME} autofs 0
fi
if [ $? -ne 0 ]; then
	echo "$NAME: FAILED"
	exit 1
else
	echo "$NAME: SUCCEEDED"
fi
