[Git][cmucl/cmucl][issue-393-os-common-getpwuid] Remove debugging prints from os_getpwuid

Raymond Toy pushed to branch issue-393-os-common-getpwuid at cmucl / cmucl Commits: d32c16f1 by Raymond Toy at 2025-03-26T11:11:38-07:00 Remove debugging prints from os_getpwuid - - - - - 1 changed file: - src/lisp/os-common.c Changes: ===================================== src/lisp/os-common.c ===================================== @@ -957,7 +957,11 @@ os_getpwuid(uid_t uid) again: switch (getpwuid_r(uid, &pwd, buffer, size, &ppwd)) { case 0: - /* Success, though we might not have a matching entry */ + /* + * Success, though we might not have a matching entry. But + * if we do, copy the entry to a new structure and return + * that. + */ if (ppwd != NULL) { result = (struct passwd*) malloc(sizeof(pwd)); result->pw_name = strdup(pwd.pw_name); @@ -967,11 +971,6 @@ again: result->pw_gecos = strdup(pwd.pw_gecos); result->pw_dir = strdup(pwd.pw_dir); result->pw_shell = strdup(pwd.pw_shell); - printf("pw-name = %p\n", result->pw_name); - printf("pw-passwd = %p\n", result->pw_passwd); - printf("pw-gecos = %p\n", result->pw_gecos); - printf("pw_dir = %p\n", result->pw_dir); - printf("pw_shell = %p\n", result->pw_shell); } break; View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/d32c16f16d9ff37a3b1f584f... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/d32c16f16d9ff37a3b1f584f... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)