2.1 beta or release

Werner Koch wk at gnupg.org
Wed Oct 29 12:35:45 CET 2014


[Patrick told me that he send a patch to the list but it doesn't made

I have taken your patched as base for my patch.  My version is not OSX
specific but relies on the fact that sem_init returns ENOSYS.  That
seems to be used on other platforms as well.  POSIX is a bit unclear on

I tested this on Linux by replacing sem_init with (-1) and setting
errno.  I also loop over sem_open using a counter for the name, so that
it is hard for another process to DoS us by guessing our pid and
creating a semaphore with that name.  Also the use of more than one '/'
in the name is implementation defined and does for example not work on

Can you or the other OS X folks please test the attached patch to npth?



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-use-on-systems-which-return-ENOSYS-for-sem_ini.patch
Type: text/x-diff
Size: 4036 bytes
Desc: not available
URL: </pipermail/attachments/20141029/89694e9d/attachment.patch>

More information about the Gnupg-devel mailing list