Repair greetd controlling terminal handling
Use TIOCSCTTY from libc crate, which actually knows about OpenBSD. Then
use it to implement term_tiocsctty. This lets agreety and other child
sessions run with a proper controlling terminal.
ok landry@
Use ports-gcc for -Wvla -Wno-stringop-truncation support.
Disable gnutls and libgcrypt by default the included md5 support is good enough.
Bump REVISION
OK sthen@
Fixup use of LOGIN_SETXDGENV in greetd
- explicitely call setusercontext(LOGIN_SETALL|LOGIN_SETXDGENV) now that
LOGIN_SETXDGENV isn't included in LOGIN_SETALL
- respect the XDG_RUNTIME_DIR variable as set up by
setusercontext(LOGIN_SETXDGENV), don't hardcode the use of
/tmp/run/user. Keep the undocumented fallback for now.
- properly error out if getpwnam(3) or setusercontext(3) fail
- avoid returning from the child process, exit instead
- fix login_fbtab(3) signature
- drop special case for user _greetd, instead change its homedir
to /var/run/greetd (directory created by the rc.d script)
With and ok landry@
If you already have installed greetd make sure to update the home
directory of the _greetd user.