From 636973af9556621a52607154ad79406d62071aa5 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 15 Jan 2008 01:59:00 +0000 Subject: [PATCH] fix ambigious file open flag - previously it could be interpreted as a read-only access --- bin/CryptoBoxWebserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/CryptoBoxWebserver b/bin/CryptoBoxWebserver index afdc40f..6dd1032 100755 --- a/bin/CryptoBoxWebserver +++ b/bin/CryptoBoxWebserver @@ -393,7 +393,7 @@ if __name__ == "__main__": close_open_files() ## replace stderr by the webserver logfile os.close(2) - os.open(options.logfile, os.O_APPEND) + os.open(options.logfile, os.O_WRONLY | os.O_APPEND) ## startup went fine - fork is done - now we may write the pid file write_pid_file(options.pidfile) ## this will never exit - one of the above exit handlers will get triggered