summaryrefslogtreecommitdiffstats
path: root/tests/basic/gfid-access.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/gfid-access.t')
-rw-r--r--tests/basic/gfid-access.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/basic/gfid-access.t b/tests/basic/gfid-access.t
index f83eb6d47ee..19b6564e676 100644
--- a/tests/basic/gfid-access.t
+++ b/tests/basic/gfid-access.t
@@ -48,11 +48,13 @@ TEST ! ln $M0/.gfid $M0/hlink
TEST ! mknod $M0/.gfid b 0 0
#Test that first level directory/file creations inside .gfid are not allowed.
+tmpfile=$(mktemp)
TEST ! mkdir $M0/.gfid/a
TEST ! touch $M0/.gfid/a
-TEST ! mv /etc/passwd $M0/.gfid
+TEST ! mv $tmpfile $M0/.gfid
TEST ! mv $M0/a $M0/.gfid
TEST ! mknod $M0/.gfid/b b 0 0
+rm -f $tmpfile
#Operations on File
TEST setfattr -n trusted.abc -v abc $M0/b