Raymond Toy pushed to branch issue-408-get-user-name-and-homedir at cmucl / cmucl
Commits:
-
95c50a36
by Raymond Toy at 2025-11-13T08:49:14-08:00
1 changed file:
Changes:
| ... | ... | @@ -911,7 +911,7 @@ os_software_version(void) |
| 911 | 911 | }
|
| 912 | 912 | |
| 913 | 913 | static char *
|
| 914 | -get_homedir_from_name(const char* name, int *status)
|
|
| 914 | +get_homedir_by_user_name(const char* name, int *status)
|
|
| 915 | 915 | {
|
| 916 | 916 | int buflen;
|
| 917 | 917 | char *buf = NULL;
|
| ... | ... | @@ -981,7 +981,7 @@ get_homedir_from_name(const char* name, int *status) |
| 981 | 981 | * The caller must free the memory returned.
|
| 982 | 982 | */
|
| 983 | 983 | static char *
|
| 984 | -get_homedir_from_uid(uid_t uid, int *status)
|
|
| 984 | +get_homedir_by_uid(uid_t uid, int *status)
|
|
| 985 | 985 | {
|
| 986 | 986 | char buffer[1024];
|
| 987 | 987 | char *buf;
|
| ... | ... | @@ -1021,10 +1021,10 @@ char * |
| 1021 | 1021 | os_get_user_homedir(const char* name, int *status)
|
| 1022 | 1022 | {
|
| 1023 | 1023 | if (strlen(name) == 0) {
|
| 1024 | - return get_homedir_from_uid(getuid(), status);
|
|
| 1024 | + return get_homedir_by_uid(getuid(), status);
|
|
| 1025 | 1025 | }
|
| 1026 | 1026 | |
| 1027 | - return get_homedir_from_name(name, status);
|
|
| 1027 | + return get_homedir_by_user_name(name, status);
|
|
| 1028 | 1028 | }
|
| 1029 | 1029 |
|
| 1030 | 1030 |