| 760 | } |
| 761 | |
| 762 | char * |
| 763 | get_login_name(void) |
| 764 | { |
| 765 | static char buf[BUFSZ]; |
| 766 | struct passwd *pw = get_unix_pw(); |
| 767 | |
| 768 | buf[0] = '\0'; |
| 769 | if (pw) |
| 770 | (void)strcpy(buf, pw->pw_name); |
| 771 | |
| 772 | return buf; |
| 773 | } |
| 774 | |
| 775 | #ifdef __APPLE__ |
| 776 | extern int errno; |
no test coverage detected