1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/02.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="chmod returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..10" 10271294Sngie 11271294Sngienx=`namegen_max` 12271294Sngienxx="${nx}x" 13271294Sngie 14271294Sngieexpect 0 create ${nx} 0644 15271294Sngieexpect 0 chmod ${nx} 0620 16271294Sngieexpect 0620 stat ${nx} mode 17271294Sngieexpect 0 unlink ${nx} 18271294Sngieexpect ENAMETOOLONG chmod ${nxx} 0620 19271294Sngie 20271294Sngieexpect 0 create ${nx} 0644 21271294Sngieexpect 0 lchmod ${nx} 0620 22271294Sngieexpect 0620 stat ${nx} mode 23271294Sngieexpect 0 unlink ${nx} 24271294Sngieexpect ENAMETOOLONG lchmod ${nxx} 0620 25