1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD$ 3166065Spjd 4166065Spjddesc="rename returns EFAULT if one of the pathnames specified is outside the process's allocated address space" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9166065Spjdecho "1..8" 10166065Spjd 11166065Spjdn0=`namegen` 12166065Spjd 13166065Spjdexpect 0 create ${n0} 0644 14166065Spjdexpect EFAULT rename ${n0} NULL 15166065Spjdexpect EFAULT rename ${n0} DEADCODE 16166065Spjdexpect 0 unlink ${n0} 17166065Spjdexpect EFAULT rename NULL ${n0} 18166065Spjdexpect EFAULT rename DEADCODE ${n0} 19166065Spjdexpect EFAULT rename NULL DEADCODE 20166065Spjdexpect EFAULT rename DEADCODE NULL 21