Created attachment 34054 [details] [review]
use getcwd instead of get_current_dir_name
pkexec.c uses get_current_dir_name when we have getcwd in POSIX specs; this causes polkit not to build on, eg, FreeBSD. Here is a patch to fix that.
I committed another patch to fix this: http://cgit.freedesktop.org/PolicyKit/commit/?id=401d710a0c98f4011c3cf777677f96250bef9008