2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
16 register struct passwd
*p
;
18 if(strcmp(key
, "USER") == 0 || strcmp(key
, "HOME") == 0)
19 if((p
= getpwuid(getruid())) == NULL
)
22 return strcmp(key
, "USER") == 0 ?
23 p
->pw_name
: p
->pw_dir
;