Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | WIP on tweaks: 98593a8 Extend the "don't overwrite fields if only carriage return is entered" to password field |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | trunk | refs/stash |
Files: | files | file ages | folders |
SHA3-256: |
4a8cb3e9a04c7fc84efb59a7e50873dc |
User & Date: | base@atomicules.co.uk 2014-01-03 22:25:41 |
Context
2014-01-03
| ||
22:25 | WIP on tweaks: 98593a8 Extend the "don't overwrite fields if only carriage return is entered" to password field Leaf check-in: 4a8cb3e9a0 user: base@atomicules.co.uk tags: refs/stash, trunk | |
22:25 | index on tweaks: 98593a8 Extend the "don't overwrite fields if only carriage return is entered" to password field check-in: db8bd43770 user: base@atomicules.co.uk tags: refs/stash, trunk | |
2013-03-23
| ||
21:27 |
Extend the "don't overwrite fields if only carriage return is entered" to password field
And also use malloc. What I'd done before wasn't doing what I thought. C I'm in two minds about the benefit of dynamic allocation though. Since | |
Changes
Changes to src/pwman.c.
︙ | ︙ | |||
27 28 29 30 31 32 33 | #include <fcntl.h> #include <stdarg.h> static void pwman_parse_command_line(int argc, char **argv); static void pwman_show_usage(); static void pwman_show_version(); static void pwman_quit(); | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #include <fcntl.h> #include <stdarg.h> static void pwman_parse_command_line(int argc, char **argv); static void pwman_show_usage(); static void pwman_show_version(); static void pwman_quit(); int EXIT_STATUS; static int pwman_check_lock_file() { char fn[STRING_LONG]; FILE *fp; |
︙ | ︙ | |||
153 154 155 156 157 158 159 | ui_refresh_windows(); } static void pwman_quit() { | > | > > | | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | ui_refresh_windows(); } static void pwman_quit() { if (EXIT_STATUS != 0) { pwlist_write_file(); } pwlist_free_all(); pwman_delete_lock_file(); ui_end(); options_write(); exit(0); } int main(int argc, char *argv[]) { int exit_status; pwman_init(argc, argv); EXIT_STATUS = ui_run(); pwman_quit(); return 0; } static void pwman_parse_command_line(int argc, char **argv) |
︙ | ︙ |
Changes to src/ui.c.
︙ | ︙ | |||
187 188 189 190 191 192 193 | int load_worked = 0; #ifdef DEBUG int debug_i = 0; #endif char msg[80]; time_base = time(NULL); | | > | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | int load_worked = 0; #ifdef DEBUG int debug_i = 0; #endif char msg[80]; time_base = time(NULL); //return 1; while(1){ can_resize = TRUE; if( should_resize ){ ui_resize(); } ch = getch(); ui_statusline_clear(); can_resize = FALSE; if((time_base < (time(NULL) - (options->passphrase_timeout*60))) && options->passphrase_timeout != 0 && tolower(ch) != 'q'){ pwlist_write_file(); pwlist_free_all(); ui_statusline_msg("Passphrase has timed out and you must enter it again."); getch(); load_worked = pwlist_read_file(); if(load_worked != 0) { ui_statusline_msg("Error - unable to re-load the password file!"); //return 0; break; } time_base = time(NULL); } switch(ch){ |
︙ | ︙ |