Fix that directory is not mistaken for binary
commit4e057440520c13e00610de13f076d85c8d440864
authorRoland Schulz <roland@utk.edu>
Sat, 31 Mar 2012 22:16:51 +0000 (31 18:16 -0400)
committerRoland Schulz <roland@utk.edu>
Wed, 11 Apr 2012 03:36:27 +0000 (10 23:36 -0400)
tree9cebef889a413922d6860b3ab2fa0e992dcf9ff2
parentb76d7b905fbf06244943b9d9b7355347716f0b89
Fix that directory is not mistaken for binary

The smart searching for the library path searched for an existing
inode with the name of the binary. If a directory with that name
existed, it was mistaken for the binary.

E.g.:
$ mkdir pdb2gmx
$ pdb2gmx
Fatal error:
No force fields found

This patch replaces gmx_fexist with gmx_is_file which checks that
the inode with the name of the binary is not a directory.

Change-Id: I78cdf8136db9ed69b75dcb1d4d0582ab388ef1d8
CMakeLists.txt
src/config.h.cmakein
src/gmxlib/futil.c