1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/10.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="chmod returns EFAULT if the path argument points outside the process's allocated address space" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieif supported lchmod; then 10271294Sngie echo "1..4" 11271294Sngieelse 12271294Sngie echo "1..2" 13271294Sngiefi 14271294Sngie 15271294Sngieexpect EFAULT chmod NULL 0644 16271294Sngieexpect EFAULT chmod DEADCODE 0644 17271294Sngieif supported lchmod; then 18271294Sngie expect EFAULT lchmod NULL 0644 19271294Sngie expect EFAULT lchmod DEADCODE 0644 20271294Sngiefi 21