1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* posix.c (scm_getpwuid): If we can't find an entry, return our

own message, instead of using scm_syserror --- the getpwMUMBLE
functions don't set `errno' to anything interesting.
This commit is contained in:
Jim Blandy 1998-10-03 14:10:18 +00:00
parent 0553d3a207
commit 20752a3415

View file

@ -279,7 +279,7 @@ scm_getpwuid (user)
entry = getpwnam (SCM_ROCHARS (user));
}
if (!entry)
scm_syserror (s_getpwuid);
scm_misc_error (s_getpwuid, "entry not found", SCM_EOL);
ve[0] = scm_makfrom0str (entry->pw_name);
ve[1] = scm_makfrom0str (entry->pw_passwd);