mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
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:
1 parent
659ff9962e
commit
85115eca62
1 file changed
+1
-1
@@ -216,7 +216,7 @@ void logit(int prio, const char *fmt, ...)
|
|||||||
int getuser(char *username, char **home)
|
int getuser(char *username, char **home)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_STATIC
|
#ifdef ENABLE_STATIC
|
||||||
home = NULL; /* XXX: Fixme */
|
*home = "/"; /* XXX: Fixme */
|
||||||
return fgetint("/etc/passwd", "x:\n", username);
|
return fgetint("/etc/passwd", "x:\n", username);
|
||||||
#else
|
#else
|
||||||
struct passwd *usr;
|
struct passwd *usr;
|
||||||
|
|||||||
Reference in new issue
Block a user