Improve FreeBSD support:
- include posix_openpt() usage patch
- add workaround for readdir() issue: #211
- fix few warnings
Are you still interested in working on this? If not, I'll close the pull request in a few days.
FreeBSD already take this into ports tree :)
How do you suggest to rework this? Remove option and make this "workaround" persistent?
I'm happy with most of the patch, but I don't understand the need for the readdir workaround. I'd much rather see it removed from the patch and discussed separately.
Are you still interested in working on this? If not, I'll close this pull request for now.
Does pam_mount exist on FreeBSD? Otherwise I think it is better to disable the password_stdin flag.
pam_mount
Yes: https://www.freshports.org/sysutils/pam_mount