--- rstudio-1.2.1335-orig/src/cpp/server_core/SecureKeyFile.cpp 2019-03-28 16:08:20.000000000 +1100 +++ rstudio-1.2.1335/src/cpp/server_core/SecureKeyFile.cpp 2019-04-09 20:47:57.943317208 +1000 @@ -68,8 +68,8 @@ return error; // change mode it so it is only readable and writeable by this user - if (changeFileMode(secureKeyPath, - core::system::UserReadWriteMode) < 0) + if (!!changeFileMode(secureKeyPath, + core::system::UserReadWriteMode)) { return systemError(errno, ERROR_LOCATION); }