summaryrefslogtreecommitdiff
path: root/src/libfsm/tabgoto.cc
diff options
context:
space:
mode:
authorVictor Westerhuis <victor@westerhu.is>2021-12-07 22:41:16 +0100
committerAdrian Thurston <thurston@colm.net>2021-12-11 11:18:08 -0800
commitbe2c9cf238ec1d048e3b2d05f1b56a9f2a267668 (patch)
tree4c87d9d576a2a306b317f7d84a0b18075d0063bf /src/libfsm/tabgoto.cc
parent4e5cb4f242c001e0937bf90f0e7c96fa64e2befe (diff)
downloadcolm-be2c9cf238ec1d048e3b2d05f1b56a9f2a267668.tar.gz
Use /proc/self/exe to detect colm build directory
The canonical identity of a file on Unix is the combination of device and inode numbers. This code checks both possible paths for the colm executable: directly in the build directory (when colm is linked against libcolm statically) or in libtool's `objdir` subdirectory (when colm is linked against libcolm dynamically). This fails in two situations I can see: when /proc is not mounted or doesn't exist, or when colm is installed using a hard link.
Diffstat (limited to 'src/libfsm/tabgoto.cc')
0 files changed, 0 insertions, 0 deletions