2 # $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/02.t 211352 2010-08-15 21:24:17Z pjd $
4 desc="chmod returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters"
14 expect 0 create ${nx} 0644
15 expect 0 chmod ${nx} 0620
16 expect 0620 stat ${nx} mode
18 expect ENAMETOOLONG chmod ${nxx} 0620
20 expect 0 create ${nx} 0644
21 expect 0 lchmod ${nx} 0620
22 expect 0620 stat ${nx} mode
24 expect ENAMETOOLONG lchmod ${nxx} 0620