diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:20:29 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:20:29 -0500 |
commit | 492e5c38fa1a5e42b4ad43c1daf119cfdedbc252 (patch) | |
tree | 4b8502a1db06885e45968db3f4406e73fb117164 /menus.c | |
parent | 74b9ff28228e3858ef4bc181a34a9acf9ca6be79 (diff) |
tidy up username/password code
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -2937,7 +2937,7 @@ static int Submenu_Implement_Changes(void) { int error_num; int call_new_submenu; - int channel,eprom_loc; + int channel; call_new_submenu=NO; @@ -3213,11 +3213,7 @@ static int Submenu_Implement_Changes(void) Nonstd_menu_network(); break; case mode_password: - strcpy(globals.Flash.password,"default"); - // FIXME - save password to /etc/shadow here - - eprom_loc = (char *) &(globals.Flash.password) - (char *) &(globals.Flash.flash_start); - writeUserBlock(&globals.Flash, eprom_loc, strlen(globals.Flash.password)+1); + change_password (NULL, "default"); break; case mode_selfcal: if (error_num=self_cal()) { |