* libmisc/setupenv.c: xstrdup the static char* temp_pw_dir /
temp_pw_shell. That way we can continue to use pw_free() without
segving. Thanks to Serge Hallyn for the patch.
+2013-08-02 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/setupenv.c: xstrdup the static char* temp_pw_dir /
+ temp_pw_shell. That way we can continue to use pw_free() without
+ segving. Thanks to Serge Hallyn for the patch.
+
2013-08-01 Yuri Kozlov <yuray@komyakino.ru>
* po/ru.po: completed translation
exit (EXIT_FAILURE);
}
(void) puts (_("No directory, logging in with HOME=/"));
- info->pw_dir = strdup(temp_pw_dir);
+ info->pw_dir = xstrdup (temp_pw_dir);
}
/*
if ((NULL == info->pw_shell) || ('\0' == *info->pw_shell)) {
static char temp_pw_shell[] = SHELL;
- info->pw_shell = temp_pw_shell;
+ info->pw_shell = xstrdup (temp_pw_shell);
}
addenv ("SHELL", info->pw_shell);