Created
June 9, 2025 05:11
-
-
Save yoku0825/6d8a2fee64de1b687f7c41bd6052f69e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65c65 | |
< static my_bool opt_verbose, opt_all, tty_password= 0, opt_warn, | |
--- | |
> static my_bool opt_verbose, opt_all, opt_warn, | |
151c151 | |
< 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, | |
--- | |
> &opt_password, &opt_password, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, | |
248d247 | |
< tty_password= 1; | |
543,545d541 | |
< if (tty_password) | |
< opt_password= get_tty_password(NullS); | |
< | |
918,936d913 | |
< const char *password_str= "\npassword = ", *mask = "*****"; | |
< char *next= NULL; | |
< | |
< while ((next= strstr(buf, password_str)) != NULL) | |
< { | |
< while ( *buf != 0 && buf != next) | |
< putc( *(buf ++), stdout); | |
< printf("%s", password_str); | |
< printf("%s\n", mask); | |
< if (*buf == '\n') /* Move past \n' */ | |
< buf ++; | |
< | |
< /* Ignore the password. */ | |
< while( *buf && *(buf ++) != '\n') | |
< {} | |
< | |
< if ( !opt_all) | |
< break; | |
< } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment