summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-08-10 15:56:44 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-08-13 13:59:24 +0300
commit2cd4ae5ee6b385360644ded41d73e070ea81f116 (patch)
treefa1204c122c5c9a7f271bd26a8efc8973b3c602b /tools
parentfce9638b2e60afce872b3056c19a729b1b3708be (diff)
runner: Fix path handling
absolute_path() tends to return NULL if more than the last element of the path is nonexistent. That behavior is confusing the callers, which use NULL as a convention for something not being set at all. Let's fix that by sprinkling a little bit of recursion onto absolute_path() and wrapping POSIX in some sanity. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions