Opened 10 months ago

Last modified 10 months 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:

Description

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 10 months ago.

Download all attachments as: .zip

Change History (5)

by Thomas Klausner, 10 months ago

Attachment: patch-lib_impersonation.cpp added

comment:1 by Tim Kosse, 10 months ago

Related: #12554

comment:2 by Tim Kosse, 10 months 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, 10 months 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, 10 months 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.