Hello community, here is the log from the commit of package netcat-openbsd for openSUSE:Factory checked in at 2020-12-09 22:11:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/netcat-openbsd (Old) and /work/SRC/openSUSE:Factory/.netcat-openbsd.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "netcat-openbsd" Wed Dec 9 22:11:32 2020 rev:26 rq:853594 version:1.203 Changes: -------- --- /work/SRC/openSUSE:Factory/netcat-openbsd/netcat-openbsd.changes 2019-09-19 15:46:28.903346505 +0200 +++ /work/SRC/openSUSE:Factory/.netcat-openbsd.new.2328/netcat-openbsd.changes 2020-12-09 22:11:32.867074730 +0100 @@ -1,0 +2,6 @@ +Mon Dec 7 13:09:09 UTC 2020 - Cristian RodrÃguez <[email protected]> + +- Add port-select-on-connect.patch: if -s is given but not -p + do not select port at bind() but at connect() time. + +------------------------------------------------------------------- New: ---- port-select-on-connect.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ netcat-openbsd.spec ++++++ --- /var/tmp/diff_new_pack.bXbF0V/_old 2020-12-09 22:11:34.087075967 +0100 +++ /var/tmp/diff_new_pack.bXbF0V/_new 2020-12-09 22:11:34.091075971 +0100 @@ -1,7 +1,7 @@ # # spec file for package netcat-openbsd # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,7 @@ Patch11: destination-port-list.patch Patch12: use-flags-to-specify-listen-address.patch Patch13: misc-failures-and-features.patch +Patch14: port-select-on-connect.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(libbsd) Provides: nc6 = %{version} ++++++ port-select-on-connect.patch ++++++ Index: netcat-openbsd-1.203/netcat.c =================================================================== --- netcat-openbsd-1.203.orig/netcat.c +++ netcat-openbsd-1.203/netcat.c @@ -1190,7 +1190,10 @@ remote_connect(const char *host, const c ahints.ai_flags = AI_PASSIVE; if ((error = getaddrinfo(sflag, pflag, &ahints, &ares))) errx(1, "getaddrinfo: %s", gai_strerror(error)); - +#ifdef IP_BIND_ADDRESS_NO_PORT + if(sflag && !pflag) + setsockopt(s, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &on, sizeof(on)); +#endif if (bind(s, (struct sockaddr *)ares->ai_addr, ares->ai_addrlen) < 0) err(1, "bind failed"); _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
