macOS: make eina_environment_tmp_get() work as elsewhere.
authorAlastair Poole <netstar@gmail.com>
Tue, 2 Oct 2018 11:24:58 +0000 (11:24 +0000)
committerYeongjong Lee <yj34.lee@samsung.com>
Thu, 8 Nov 2018 06:40:42 +0000 (15:40 +0900)
commitc27541af9bc3ceef9afeaef1287816cf4895b6c5
treea8d07a49f36f1ff882de7fa8f68295168cc069c8
parente2c8ab5d3df07205c68e814103bde976a3540200
macOS: make eina_environment_tmp_get() work as elsewhere.

On macOS the tmp file path always terminated with an additional
separator, causing issues when making file name comparisons.
For example, the Eio test suits would hang due to this.
This patch trims any trailing path. When joining paths
with eina_environment_tmp_get, macOS should behave
similarly as on other architectures.

Differential Revision: https://phab.enlightenment.org/D7128
src/lib/eina/eina_util.c