Use k_getpw{uid,name}

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1050 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-19 04:13:08 +00:00
parent 57644d9c33
commit 2d320a31df
2 changed files with 2 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
* first and then trying the password file
*/
if ((h = getenv("HOME")) == NULL) {
if ((pwd = getpwuid(getuid())) == NULL)
if ((pwd = k_getpwuid(getuid())) == NULL)
return pattern;
else
h = pwd->pw_dir;

View File

@@ -364,7 +364,7 @@ globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
* first and then trying the password file
*/
if ((h = getenv("HOME")) == NULL) {
if ((pwd = getpwuid(getuid())) == NULL)
if ((pwd = k_getpwuid(getuid())) == NULL)
return pattern;
else
h = pwd->pw_dir;