OSDN Git Service

nptl: fix sem_open with O_CREAT
authorRoman I Khimov <khimov@altell.ru>
Sun, 2 May 2010 19:45:27 +0000 (23:45 +0400)
committerAustin Foxley <austinf@cetoncorp.com>
Mon, 3 May 2010 20:27:36 +0000 (13:27 -0700)
commit57d82892913019352bf8e35c5a3e9965e1df0e6b
tree686ceb6fbeb3bc2b4b8073f5523eca4b568b8afa
parente769b83bc129210a25198c7de73272d8632923fa
nptl: fix sem_open with O_CREAT

Temporary file name template passed to __gen_tempname had no "XXXXXX" in it,
so __gen_tempname returned EINVAL which led to sem_open failure.

Fixes NPTL tests tst-sem4, tst-sem7, tst-sem8, tst-sem9.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libpthread/nptl/sem_open.c