mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Backport mpd5 fix (rev. 1224):
Do not print warning, when we a renaming interface to existing name https://forum.pfsense.org/index.php?topic=41061.msg476926 - Bump PORTREVISION PR: 200722 Approved by: maintainer timeout (> 2 months) Sponsored by: Netgate
This commit is contained in:
parent
c8260db5f9
commit
878b22662a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394223
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= mpd
|
||||
DISTVERSION= 5.7
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION}
|
||||
PKGNAMESUFFIX= 5
|
||||
|
17
net/mpd5/files/patch-src_file.c
Normal file
17
net/mpd5/files/patch-src_file.c
Normal file
@ -0,0 +1,17 @@
|
||||
--- src/iface.c 2015/05/13 12:31:43 1.223
|
||||
+++ src/iface.c 2015/06/02 08:57:13 1.224
|
||||
@@ -3654,9 +3654,11 @@
|
||||
b->name, iface->ifname, ifname));
|
||||
|
||||
if (ioctl(s, SIOCSIFNAME, (caddr_t)&ifr) < 0) {
|
||||
- Perror("[%s] IFACE: ioctl(%s, SIOCSIFNAME)", b->name, iface->ifname);
|
||||
- close(s);
|
||||
- return(-1);
|
||||
+ if (errno != EEXIST) {
|
||||
+ Perror("[%s] IFACE: ioctl(%s, SIOCSIFNAME)", b->name, iface->ifname);
|
||||
+ close(s);
|
||||
+ return(-1);
|
||||
+ }
|
||||
}
|
||||
|
||||
close(s);
|
Loading…
Reference in New Issue
Block a user