02.t revision 271294
145088Smarkm#!/bin/sh 256585Sobrien# $FreeBSD: head/tools/regression/pjdfstest/tests/chown/02.t 211352 2010-08-15 21:24:17Z pjd $ 350472Speter 445088Smarkmdesc="chown returns ENAMETOOLONG if a component of a pathname exceeded ${NAME_MAX} characters" 558750Scwt 658750Scwtdir=`dirname $0` 756585Sobrien. ${dir}/../misc.sh 856585Sobrien 945088Smarkmecho "1..10" 10130151Sschweikh 1153685Sobriennx=`namegen_max` 1253685Sobriennxx="${nx}x" 1353685Sobrien 1453685Sobrienexpect 0 create ${nx} 0644 15130151Sschweikhexpect 0 chown ${nx} 65534 65534 1653685Sobrienexpect 65534,65534 stat ${nx} uid,gid 1753685Sobrienexpect 0 unlink ${nx} 1845088Smarkmexpect ENAMETOOLONG chown ${nxx} 65534 65534 1953685Sobrien 2045088Smarkmexpect 0 create ${nx} 0644 2145088Smarkmexpect 0 lchown ${nx} 65534 65534 2245488Smarkmexpect 65534,65534 stat ${nx} uid,gid 2345088Smarkmexpect 0 unlink ${nx} 2445088Smarkmexpect ENAMETOOLONG lchown ${nxx} 65534 65534 2545088Smarkm