commit e55c9ce583efdd740da7458812d3253d9f4895ae parent 10363565a1708a5a5adb6e6624de0dde6455ded4 Author: Mattias Andrée <maandree@kth.se> Date: Thu, 25 May 2017 19:00:15 +0200 Fix blind-from-named Signed-off-by: Mattias Andrée <maandree@kth.se> Diffstat:
M | src/blind-from-named.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/blind-from-named.c b/src/blind-from-named.c @@ -92,9 +92,9 @@ main(int argc, char *argv[]) default: usage(); } ARGEND; - if (argc < 1 || (filedes >= 0 && argc > 1)) + if (argc < 1 || (filedes >= 0 && argc == 1)) usage(); - if (argc > 0 && filedes < 0) + if (filedes < 0) filedes = STDIN_FILENO; memset(&addr, 0, sizeof(addr));