Hello community, here is the log from the commit of package arp-scan for openSUSE:Factory checked in at 2016-05-12 09:33:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/arp-scan (Old) and /work/SRC/openSUSE:Factory/.arp-scan.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "arp-scan" Changes: -------- --- /work/SRC/openSUSE:Factory/arp-scan/arp-scan.changes 2016-02-17 12:09:34.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.arp-scan.new/arp-scan.changes 2016-05-12 09:33:56.000000000 +0200 @@ -1,0 +2,6 @@ +Wed May 11 07:11:55 UTC 2016 - meiss...@suse.com + +- arp-scan-avoid-crash.patch: avoid crash when trying capture as + user (bsc#978596) + +------------------------------------------------------------------- New: ---- arp-scan-avoid-crash.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ arp-scan.spec ++++++ --- /var/tmp/diff_new_pack.kCijiI/_old 2016-05-12 09:33:57.000000000 +0200 +++ /var/tmp/diff_new_pack.kCijiI/_new 2016-05-12 09:33:57.000000000 +0200 @@ -25,6 +25,7 @@ # strlcpy.c and strlcat.c have ISC header and embeded {getopt,obstack}.{c,h} has LGPL-2.1 Url: https://github.com/royhills/arp-scan Source: https://github.com/royhills/arp-scan/releases/download/%{version}/arp-scan-%{version}.tar.gz +Patch0: arp-scan-avoid-crash.patch BuildRequires: libpcap-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -35,6 +36,7 @@ %prep %setup -q +%patch0 -p1 %build %configure ++++++ arp-scan-avoid-crash.patch ++++++ commit 195ff60b98696e822c4a877523b2097d40386cc1 Author: Roy Hills <royhi...@hotmail.com> Date: Wed Dec 4 18:30:14 2013 +0000 Die with an error if we can't open a raw packet socket. diff --git a/link-packet-socket.c b/link-packet-socket.c index d25463b..de1eefc 100644 --- a/link-packet-socket.c +++ b/link-packet-socket.c @@ -68,8 +68,8 @@ link_open(const char *device) { handle = Malloc(sizeof(*handle)); memset(handle, '\0', sizeof(*handle)); if ((handle->fd = socket(PF_PACKET, SOCK_RAW, 0)) < 0) { - free(handle); - return NULL; + warn_msg("ERROR: Cannot open raw packet socket"); + err_sys("socket"); } strlcpy(handle->ifr.ifr_name, device, sizeof(handle->ifr.ifr_name)); if ((ioctl(handle->fd, SIOCGIFINDEX, &(handle->ifr))) != 0)