summaryrefslogtreecommitdiff
path: root/regress/sys/ffs/tests/chown/06.t
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/ffs/tests/chown/06.t')
-rw-r--r--regress/sys/ffs/tests/chown/06.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/regress/sys/ffs/tests/chown/06.t b/regress/sys/ffs/tests/chown/06.t
new file mode 100644
index 00000000000..88999d8f040
--- /dev/null
+++ b/regress/sys/ffs/tests/chown/06.t
@@ -0,0 +1,14 @@
+#!/bin/sh
+# $FreeBSD: src/tools/regression/fstest/tests/chown/06.t,v 1.1 2007/01/17 01:42:08 pjd Exp $
+
+desc="chown returns ELOOP if too many symbolic links were encountered in translating the pathname"
+
+n0=`namegen`
+n1=`namegen`
+
+expect 0 symlink ${n0} ${n1}
+expect 0 symlink ${n1} ${n0}
+expect ELOOP chown ${n0}/test 65534 65534
+expect ELOOP chown ${n1}/test 65534 65534
+expect 0 unlink ${n0}
+expect 0 unlink ${n1}