Opened 2 years ago

Last modified 2 years ago

#12658 new Bug report

libfilezilla: impersonation code is Linux-specific

Reported by: Thomas Klausner Owned by:
Priority: normal Component: libfilezilla
Keywords: Cc:
Component version: Operating system type: BSD
Operating system version:


The new impersonation code does not build on (Net)BSD.
crypt.h and shadow.h are Linux-specific.
I'll attach a patch to show what is needed to make this compile on NetBSD, but of course proper support would be preferred.

Attachments (1)

patch-lib_impersonation.cpp (886 bytes ) - added by Thomas Klausner 2 years ago.

Download all attachments as: .zip

Change History (5)

by Thomas Klausner, 2 years ago

Attachment: patch-lib_impersonation.cpp added

comment:1 by Tim Kosse, 2 years ago

Related: #12554

comment:2 by Tim Kosse, 2 years ago

Status: newmoreinfo

How can a program verify user passwords on NetBSD?

Is there a preprocessor define to specifically detect NetBSD?

comment:3 by Tim Kosse, 2 years ago

Why does NetBSD have no crypt_r()? crypt() is not thread-safe. Should be easy to add such a function, please let the NetBSD developers know. Re-open this ticket once this function has been added to NetBSD.

comment:4 by Thomas Klausner, 2 years ago

Status: moreinfonew

I've asked the NetBSD developers about this.
NetBSD's compiler defines a NetBSD symbol you can check. (i.e. underscore-underscore-NetBSD-underscore-underscore)

Note: See TracTickets for help on using tickets.