Use stat to check that paths are equivalent
authorRoland Schulz <roland@utk.edu>
Tue, 26 May 2015 18:21:40 +0000 (11:21 -0700)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 6 Jun 2015 19:06:25 +0000 (21:06 +0200)
commit0bbb9b7331aa21072bd51641883fecdcc9f9b7f9
tree08e8a813f27623a2953f16fa9e59562e568ad10e
parent31cc5ae98345cbc1039915ac383a5ef5a567a1b0
Use stat to check that paths are equivalent

Replaces the previous approach of comparing path as string.
The previous approach didn't work reliable on case insenstive filesystems
or with symlinks.

Change-Id: Iee11c172db89b98a26b3592be2f285110a85a632
src/gromacs/commandline/cmdlineprogramcontext.cpp
src/gromacs/fileio/path.cpp
src/gromacs/fileio/path.h
src/gromacs/utility/exceptions.h