From a634b7e2cb2d732691fa659856fdc5b610260d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 18 Jan 2018 22:47:10 +0100 Subject: [PATCH] Add comment explaining reasoning behind our own getumask() --- src/openrct2/platform/Posix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/platform/Posix.cpp b/src/openrct2/platform/Posix.cpp index 94c9c2072a..9a5b2930f3 100644 --- a/src/openrct2/platform/Posix.cpp +++ b/src/openrct2/platform/Posix.cpp @@ -152,6 +152,8 @@ bool platform_original_game_data_exists(const utf8 *path) return platform_file_exists(checkPath); } +// Implement our own version of getumask(), as it is documented being +// "a vaporware GNU extension". static mode_t openrct2_getumask() { mode_t mask = umask(0);