Skip to content

Commit

Permalink
do not stdout if -A wanted
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Mar 3, 2018
1 parent 279291a commit 39fdb01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wlangenpmkocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,22 +994,22 @@ while ((auswahl = getopt(argc, argv, "p:e:i:I:a:A:c:P:D:lh")) != -1)
}
}

if((essidname != NULL) && (fhpwlist == NULL) && (fhascii == NULL) && (pwname == NULL) && (fhcombi == NULL))
if((essidname != NULL) && (fhpwlist == NULL) && (fhascii == NULL) && (pwname == NULL) && (fhcombi == NULL) && (fhasciipw == NULL))
{
printf("running in stdin/stdout mode\n");
pipeflag = true;
fhascii = stdout;
fhpwlist = stdin;
}

else if((essidname != NULL) && (fhpwlist != NULL) && (fhascii == NULL) && (pwname == NULL) && (fhcombi == NULL))
else if((essidname != NULL) && (fhpwlist != NULL) && (fhascii == NULL) && (pwname == NULL) && (fhcombi == NULL) && (fhasciipw == NULL))
{
printf("running in stdout mode\n");
pipeflag = true;
fhascii = stdout;
}

else if((essidname != NULL) && (fhpwlist == NULL) && (fhascii != NULL) && (pwname == NULL) && (fhcombi == NULL))
else if((essidname != NULL) && (fhpwlist == NULL) && (fhascii != NULL) && (pwname == NULL) && (fhcombi == NULL) && (fhasciipw == NULL))
{
printf("running in stdin mode\n");
pipeflag = true;
Expand Down

0 comments on commit 39fdb01

Please sign in to comment.