if using the static char* for pw_dir, strdup it so pw_free() can be used. (Closes: Debian#691459)

This commit is contained in:
bubulle 2013-07-28 14:16:09 +02:00
parent c11132a3a1
commit 945eb8f50b
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
2012-05-20 Christian Perrier <christian@perrier.eu.org>
* configure.in: Prepare for next point release 4.2.
* if using the static char* for pw_dir, strdup it so
pw_free() can be used. (Closes: Debian#691459)
2012-05-25 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -228,7 +228,7 @@ void setup_env (struct passwd *info)
exit (EXIT_FAILURE);
}
(void) puts (_("No directory, logging in with HOME=/"));
info->pw_dir = temp_pw_dir;
info->pw_dir = strdup(temp_pw_dir);
}
/*