SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
net/libfilezilla/patches/patch-lib_impersonation_cpp
Normal file
30
net/libfilezilla/patches/patch-lib_impersonation_cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: lib/impersonation.cpp
|
||||
--- lib/impersonation.cpp.orig
|
||||
+++ lib/impersonation.cpp
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <optional>
|
||||
#include <tuple>
|
||||
|
||||
-#if FZ_UNIX
|
||||
+#if FZ_UNIX && !__OpenBSD__
|
||||
#include <crypt.h>
|
||||
#include <shadow.h>
|
||||
#endif
|
||||
@@ -98,7 +98,7 @@ std::optional<gid_t> get_group(native_string const& gn
|
||||
return {};
|
||||
}
|
||||
|
||||
-#if FZ_UNIX
|
||||
+#if FZ_UNIX && !__OpenBSD__
|
||||
struct shadow_holder {
|
||||
shadow_holder() = default;
|
||||
shadow_holder(shadow_holder const&) = delete;
|
||||
@@ -190,7 +190,7 @@ std::vector<gid_t> get_supplementary(std::string const
|
||||
|
||||
bool check_auth(native_string const& username, native_string const& password)
|
||||
{
|
||||
-#if FZ_UNIX
|
||||
+#if FZ_UNIX && !__OpenBSD__
|
||||
auto shadow = get_shadow(username);
|
||||
if (shadow.shadow_) {
|
||||
struct crypt_data data{};
|
Loading…
Add table
Add a link
Reference in a new issue