1166065Spjd#!/bin/sh
2166065Spjd# $FreeBSD: releng/10.3/tools/regression/pjdfstest/tests/chmod/10.t 211336 2010-08-15 14:44:48Z pjd $
3166065Spjd
4166065Spjddesc="chmod returns EFAULT if the path argument points outside the process's allocated address space"
5166065Spjd
6166065Spjddir=`dirname $0`
7166065Spjd. ${dir}/../misc.sh
8166065Spjd
9211336Spjdif supported lchmod; then
10211336Spjd	echo "1..4"
11211336Spjdelse
12211336Spjd	echo "1..2"
13211336Spjdfi
14166065Spjd
15166065Spjdexpect EFAULT chmod NULL 0644
16166065Spjdexpect EFAULT chmod DEADCODE 0644
17211336Spjdif supported lchmod; then
18211336Spjd	expect EFAULT lchmod NULL 0644
19211336Spjd	expect EFAULT lchmod DEADCODE 0644
20211336Spjdfi
21