03.t revision 271295
1219820Sjeff#!/bin/sh 2219820Sjeff# $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/03.t 211352 2010-08-15 21:24:17Z pjd $ 3219820Sjeff 4219820Sjeffdesc="chmod returns ENAMETOOLONG if an entire path name exceeded {PATH_MAX} characters" 5219820Sjeff 6219820Sjeffdir=`dirname $0` 7219820Sjeff. ${dir}/../misc.sh 8219820Sjeff 9219820Sjeffecho "1..10" 10219820Sjeff 11219820Sjeffnx=`dirgen_max` 12219820Sjeffnxx="${nx}x" 13219820Sjeff 14219820Sjeffmkdir -p "${nx%/*}" 15219820Sjeff 16219820Sjeffexpect 0 create ${nx} 0644 17219820Sjeffexpect 0 chmod ${nx} 0642 18219820Sjeffexpect 0642 stat ${nx} mode 19219820Sjeffexpect 0 unlink ${nx} 20219820Sjeffexpect ENAMETOOLONG chmod ${nxx} 0642 21219820Sjeff 22219820Sjeffexpect 0 create ${nx} 0644 23219820Sjeffexpect 0 lchmod ${nx} 0642 24219820Sjeffexpect 0642 stat ${nx} mode 25219820Sjeffexpect 0 unlink ${nx} 26219820Sjeffexpect ENAMETOOLONG lchmod ${nxx} 0642 27219820Sjeff 28219820Sjeffrm -rf "${nx%%/*}" 29219820Sjeff