1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

handle password file locking.

This commit is contained in:
Ulrich Drepper
1996-08-26 10:28:45 +00:00
parent 4884d0f03c
commit dcf0671d90
19 changed files with 321 additions and 72 deletions

View File

@@ -46,8 +46,13 @@ _dl_signal_error (int errcode,
if (catch)
{
/* We are inside _dl_catch_error. Return to it. */
catch->errstring = errstring;
/* We are inside _dl_catch_error. Return to it. We have to
duplicate the error string since it might be allocated on the
stack. */
size_t len = strlen (errstring) + 1;
catch->errstring = malloc (len);
if (catch->errstring != NULL)
memcpy (catch->errstring, errstring, len);
catch->objname = objname;
longjmp (catch->env, errcode ?: -1);
}