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

@ -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);
}
/*