roken: Add roken_get_username() and friends

We add roken_get_{shell, username, appdatadir, homedir}() functions.  These use
a combination of secure_getenv(), getpwuid_r(), getlogin_r(), or various WIN32
functions to get this information.

Use roken_get_appdatadir() instead of roken_get_homedir() when looking for
dotfiles.
This commit is contained in:
Nicolas Williams
2017-10-12 12:19:46 -05:00
committed by Nico Williams
parent 073ffd0423
commit 95eb83c424
7 changed files with 472 additions and 9 deletions

View File

@@ -179,6 +179,10 @@ HEIMDAL_ROKEN_1.0 {
roken_gethostby_setup;
roken_gethostbyaddr;
roken_gethostbyname;
roken_get_appdatadir;
roken_get_homedir;
roken_get_shell;
roken_get_username;
roken_mconcat;
roken_vconcat;
roken_vmconcat;