if using the static char* for pw_dir, strdup it so pw_free() can be used. (Closes: Debian#691459)
This commit is contained in:
parent
c11132a3a1
commit
945eb8f50b
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user