Check for get_current_dir_name. There is a replacement function in
[tinc] / lib / README
1 The files in this directory were merely copied from fileutils 4.0.