openbsd-ports/net/libfilezilla/patches/patch-lib_impersonation_cpp

31 lines
769 B
Plaintext

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
@@ -58,7 +58,7 @@ passwd_holder get_passwd(fz::native_string const& user
return ret;
}
-#if FZ_UNIX
+#if FZ_UNIX && !__OpenBSD__
struct shadow_holder {
shadow_holder() = default;
shadow_holder(shadow_holder const&) = delete;
@@ -150,7 +150,7 @@ std::vector<gid_t> get_supplementary(std::string const
bool check_auth(fz::native_string const& username, fz::native_string const& password)
{
-#if FZ_UNIX
+#if FZ_UNIX && !__OpenBSD__
auto shadow = get_shadow(username);
if (shadow.shadow_) {
struct crypt_data data{};