(saveargv): Lame attempt at protecting users who foolishly specify
passwords on the command line. Antisocially zaps the complete command line, not just the password. Remove, at least for now. (main): Update accordingly.
This commit is contained in:
parent
f757843ca5
commit
b631cf944f
4 changed files with 2 additions and 60 deletions
|
@ -69,7 +69,7 @@ static void intr(int sig);
|
|||
static int handleintr(int);
|
||||
|
||||
int
|
||||
main(int ac, char **av)
|
||||
main(int ac, char **argv)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
WORD wVersionRequested;
|
||||
|
@ -88,7 +88,6 @@ main(int ac, char **av)
|
|||
int retry = 0;
|
||||
#endif
|
||||
struct ioqueue server;
|
||||
char *argv[128];
|
||||
int i, j;
|
||||
char *ptr;
|
||||
char *auxout_fname;
|
||||
|
@ -122,8 +121,6 @@ main(int ac, char **av)
|
|||
FD_ZERO(&mask);
|
||||
FD_ZERO(&savemask);
|
||||
#endif
|
||||
memset(argv, 0, sizeof(argv));
|
||||
saveargv(ac, av, argv);
|
||||
auxout_fname = NULL;
|
||||
auxout_fp = NULL;
|
||||
for (i = j = 1; i < ac; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue