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:
@@ -364,7 +364,7 @@ globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
|
|||||||
* first and then trying the password file
|
* first and then trying the password file
|
||||||
*/
|
*/
|
||||||
if ((h = getenv("HOME")) == NULL) {
|
if ((h = getenv("HOME")) == NULL) {
|
||||||
if ((pwd = getpwuid(getuid())) == NULL)
|
if ((pwd = k_getpwuid(getuid())) == NULL)
|
||||||
return pattern;
|
return pattern;
|
||||||
else
|
else
|
||||||
h = pwd->pw_dir;
|
h = pwd->pw_dir;
|
||||||
|
@@ -364,7 +364,7 @@ globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
|
|||||||
* first and then trying the password file
|
* first and then trying the password file
|
||||||
*/
|
*/
|
||||||
if ((h = getenv("HOME")) == NULL) {
|
if ((h = getenv("HOME")) == NULL) {
|
||||||
if ((pwd = getpwuid(getuid())) == NULL)
|
if ((pwd = k_getpwuid(getuid())) == NULL)
|
||||||
return pattern;
|
return pattern;
|
||||||
else
|
else
|
||||||
h = pwd->pw_dir;
|
h = pwd->pw_dir;
|
||||||
|
Reference in New Issue
Block a user