mirror_zfs/tests/zfs-tests
Nikolay Borisov 8658115c19 Fix do_link portion of ctime test
From the man page of dirname: " Both dirname() and basename()
may modify the contents of path, so it may be desirable to pass
a copy when calling one of these functions." And in fact on linux
using dirname actually changes the contents of the passed parameter as
evident from the following failure when running the ctime test:

link(/root/zfs-mount, /root/zfs-mount/link_file)

Fix this by creating a copy of the input parameter and passing that
to dirname, thus not compromising the original parameter, allowing
the creation of hard link to succeed.

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4977
2016-08-16 15:30:20 -07:00
..
cmd Fixes for issues found with cppcheck tool 2016-07-27 13:31:22 -07:00
include OpenZFS 2605, 6980, 6902 2016-06-28 13:47:02 -07:00
tests Fix do_link portion of ctime test 2016-08-16 15:30:20 -07:00
Makefile.am Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00