+2020-03-27 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod.cxx (parse_opt): Check port is not zero.
+
2020-03-28 Frank Ch. Eigler <fche@redhat.com>
* debuginfod.cxx (handle_buildid_r_match): During archive
case 'v': verbose ++; break;
case 'd': db_path = string(arg); break;
case 'p': http_port = (unsigned) atoi(arg);
- if (http_port > 65535) argp_failure(state, 1, EINVAL, "port number");
+ if (http_port == 0 || http_port > 65535)
+ argp_failure(state, 1, EINVAL, "port number");
break;
case 'F': scan_files = true; break;
case 'R':
+2020-03-28 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.8: Document valid --port=NUM range, excludes 0.
+
2020-03-27 Frank Ch. Eigler <fche@redhat.com>
* debuginfod-find.1: Document /path/-based buildid passing.
.TP
.B "\-p NUM" "\-\-port=NUM"
-Set the TCP port number on which debuginfod should listen, to service
-HTTP requests. Both IPv4 and IPV6 sockets are opened, if possible.
-The webapi is documented below. The default port number is 8002.
+Set the TCP port number (0 < NUM < 65536) on which debuginfod should
+listen, to service HTTP requests. Both IPv4 and IPV6 sockets are
+opened, if possible. The webapi is documented below. The default
+port number is 8002.
.TP
.B "\-I REGEX" "\-\-include=REGEX" "\-X REGEX" "\-\-exclude=REGEX"