open_by_handle: fix name of directory in error messages
authorAmir Goldstein <amir73il@gmail.com>
Fri, 24 Aug 2018 04:27:55 +0000 (07:27 +0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Aug 2018 12:55:28 +0000 (20:55 +0800)
commit2028376ff928617eadcf963fb86935901f260e4a
tree28e721779d26aa9adf4282da4a3f01149c6de794
parent794f4594fbf46bb3c51ac0566058022bc28dfdfe
open_by_handle: fix name of directory in error messages

dirname() modifies the string in dname, but we use that string
in error messages later on to print the test dir name.
Make another copy of test_dir for passing to dirname().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/open_by_handle.c