Patch from Franck Joncourt for setting permissions via open()
authorMichael Rash <mbr@cipherdyne.org>
Wed, 24 Oct 2012 01:47:56 +0000 (21:47 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 24 Oct 2012 01:47:56 +0000 (21:47 -0400)
commit627035fb22ac375d19cdde3b132f2d7fa85fcbe7
treea8127bd08d5de7551ec871f8bc45a658ad63a510
parent52d023ec60a37e07f8de678fe46b2275375c1b60
Patch from Franck Joncourt for setting permissions via open()

[client+server] Applied patch from Franck Joncourt to remove unnecessary
chmod() call when creating client rc file and server replay cache file.
The permissions are now set appropriately via open(), and at the same
time this patch fixes a potential race condition since the previous code
used fopen() followed by chmod().
CREDITS
ChangeLog
client/config_init.c
client/fwknop.c
client/utils.c
client/utils.h
server/replay_cache.c
server/utils.c
server/utils.h