Eina: Fix eina_file_mk[ds]temp when a path is passed 90/91990/3
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 19 Jan 2016 02:50:54 +0000 (11:50 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 21 Oct 2016 02:28:53 +0000 (19:28 -0700)
commit711e25ad02940089ba9e8c8098536663c2df102d
tree39ac8f2dc2acf2e22f71285006f570fba0a9d32c
parent43104348d2f960542908b22eeb1c79cfa575283c
Eina: Fix eina_file_mk[ds]temp when a path is passed

If the template is a path, mkstemp and mkdtemp would fail
miserably as they would try to create a file inside
/run/user/1000//path/to/file.XXXXXX even if the path did not
exist.

This patch fixes that by creating temp files inside the sys temp
dir iif the templatename is just a basic name without path
separator.

@fix

Change-Id: I7d8503f8a15e9a03e92f33271dca280b966f70de
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
src/lib/eina/eina_file_common.c