1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/devel/RStudio/files/patch-src_cpp_server_auth_ServerAuthHandler.cpp
Yuri Victorovich da2f3f630c devel/RStudio: Revert "feat(create-turbo): apply official-starter transform"
This reverts commit 52c0456dd5.

I have no idea what lead to this commit into devel/RStudio and
lang/rust-nightly to be made.
2024-10-02 12:38:44 -07:00

26 lines
841 B
C++

- workaround for the std:bad_cast exception in the licensed user info retrievel code
- that isn't even used on FreeBSD
- see https://github.com/rstudio/rstudio/issues/12377
- resolution: the offending function's body is commented out for the time being
--- src/cpp/server/auth/ServerAuthHandler.cpp.orig 2023-08-28 18:24:18 UTC
+++ src/cpp/server/auth/ServerAuthHandler.cpp
@@ -383,6 +383,7 @@ Error getUserFromDatabase(const boost::shared_ptr<ICon
boost::posix_time::ptime* pLastSignin,
bool* pExists)
{
+#if 0
LOG_DEBUG_MESSAGE("Getting user from database: " + user.getUsername());
*pLocked = true;
@@ -439,6 +440,10 @@ Error getUserFromDatabase(const boost::shared_ptr<ICon
}
*pExists = foundUser;
+#endif
+
+ *pExists = false;
+
return Success();
}