Fix invalid ptr assignment for --enable-static builds

Also changes the default to set $HOME to / instead of nothing.  This can
of course be improved immensely.  Pull requests always welcome ;-)

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-09-13 21:41:36 +02:00
parent 659ff9962e
commit 85115eca62
+1 -1
View File
@@ -216,7 +216,7 @@ void logit(int prio, const char *fmt, ...)
int getuser(char *username, char **home)
{
#ifdef ENABLE_STATIC
home = NULL; /* XXX: Fixme */
*home = "/"; /* XXX: Fixme */
return fgetint("/etc/passwd", "x:\n", username);
#else
struct passwd *usr;