Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=d5b96a9f03851087a1ce484bb6de2c721d702144

commit d5b96a9f03851087a1ce484bb6de2c721d702144
Author: James Buren <[email protected]>
Date:   Fri Sep 7 02:49:42 2012 -0500

add user member to account struct

diff --git a/src/local.h b/src/local.h
index d853b0f..8e5cc75 100644
--- a/src/local.h
+++ b/src/local.h
@@ -34,6 +34,7 @@ struct install

struct account
{
+  char *name;
char *user;
char *password;
char *group;
diff --git a/src/postconfig.c b/src/postconfig.c
index 34ff3f9..01c772d 100644
--- a/src/postconfig.c
+++ b/src/postconfig.c
@@ -100,6 +100,8 @@ static void account_free(struct account *account)
if(account == 0)
return;

+  free(account->name);
+
free(account->user);

free(account->password);
diff --git a/src/ui_newt.c b/src/ui_newt.c
index d3792ab..18ce5fb 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -354,6 +354,8 @@ extern bool ui_window_root(struct account *data)
break;
}
}
+
+  data->name = 0;

data->user = strdup("root");
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to