forked from rpms/rpcbind
		
	import rpcbind-1.2.5-7.el8
This commit is contained in:
		
							parent
							
								
									8c2ba9fd19
								
							
						
					
					
						commit
						892fa2bb7c
					
				| @ -1,7 +1,7 @@ | ||||
| diff -up rpcbind-0.2.4/systemd/rpcbind.service.in.orig rpcbind-0.2.4/systemd/rpcbind.service.in
 | ||||
| --- rpcbind-0.2.4/systemd/rpcbind.service.in.orig	2017-12-16 15:46:12.896270101 -0500
 | ||||
| +++ rpcbind-0.2.4/systemd/rpcbind.service.in	2017-12-16 15:46:43.672027210 -0500
 | ||||
| @@ -7,7 +7,8 @@ RequiresMountsFor=@statedir@
 | ||||
| diff -up rpcbind-1.2.5/systemd/rpcbind.service.in.orig rpcbind-1.2.5/systemd/rpcbind.service.in
 | ||||
| --- rpcbind-1.2.5/systemd/rpcbind.service.in.orig	2020-01-16 11:40:30.329120662 -0500
 | ||||
| +++ rpcbind-1.2.5/systemd/rpcbind.service.in	2020-01-16 11:44:26.605895713 -0500
 | ||||
| @@ -7,13 +7,14 @@ RequiresMountsFor=@statedir@
 | ||||
|  # Make sure we use the IP addresses listed for | ||||
|  # rpcbind.socket, no matter how this unit is started. | ||||
|  Requires=rpcbind.socket | ||||
| @ -11,3 +11,10 @@ diff -up rpcbind-0.2.4/systemd/rpcbind.service.in.orig rpcbind-0.2.4/systemd/rpc | ||||
|   | ||||
|  [Service] | ||||
|  Type=notify | ||||
|  # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. | ||||
|  EnvironmentFile=/etc/sysconfig/rpcbind | ||||
| -ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f
 | ||||
| +ExecStart=@_sbindir@/rpcbind $RPCBIND_ARGS -w -f
 | ||||
|   | ||||
|  [Install] | ||||
|  WantedBy=multi-user.target | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| diff -up rpcbind-1.2.5/src/rpcbind.c.orig rpcbind-1.2.5/src/rpcbind.c
 | ||||
| --- rpcbind-1.2.5/src/rpcbind.c.orig	2018-08-15 10:51:19.000000000 -0400
 | ||||
| +++ rpcbind-1.2.5/src/rpcbind.c	2019-11-11 10:53:56.753677937 -0500
 | ||||
| @@ -340,7 +340,7 @@ init_transport(struct netconfig *nconf)
 | ||||
| --- rpcbind-1.2.5/src/rpcbind.c.orig	2020-02-06 14:19:34.199330296 -0500
 | ||||
| +++ rpcbind-1.2.5/src/rpcbind.c	2020-02-06 14:20:19.069973902 -0500
 | ||||
| @@ -350,7 +350,7 @@ init_transport(struct netconfig *nconf)
 | ||||
|  { | ||||
|  	int fd = -1; | ||||
|  	struct t_bind taddr; | ||||
| @ -10,7 +10,7 @@ diff -up rpcbind-1.2.5/src/rpcbind.c.orig rpcbind-1.2.5/src/rpcbind.c | ||||
|  	struct __rpc_sockinfo si; | ||||
|  	SVCXPRT	*my_xprt = NULL; | ||||
|  	int status;	/* bound checking ? */ | ||||
| @@ -817,8 +817,12 @@ got_socket:
 | ||||
| @@ -827,8 +827,12 @@ got_socket:
 | ||||
|  	} | ||||
|  #endif | ||||
|   | ||||
| @ -25,7 +25,7 @@ diff -up rpcbind-1.2.5/src/rpcbind.c.orig rpcbind-1.2.5/src/rpcbind.c | ||||
|  } | ||||
| diff -up rpcbind-1.2.5/src/rpcb_stat.c.orig rpcbind-1.2.5/src/rpcb_stat.c
 | ||||
| --- rpcbind-1.2.5/src/rpcb_stat.c.orig	2018-08-15 10:51:19.000000000 -0400
 | ||||
| +++ rpcbind-1.2.5/src/rpcb_stat.c	2019-11-11 10:53:56.754677944 -0500
 | ||||
| +++ rpcbind-1.2.5/src/rpcb_stat.c	2020-02-06 14:20:19.073973959 -0500
 | ||||
| @@ -151,7 +151,7 @@ rpcbs_rmtcall(rpcvers_t rtype, rpcproc_t
 | ||||
|  	rpcbs_rmtcalllist *rl; | ||||
|  	struct netconfig *nconf; | ||||
| @ -36,8 +36,8 @@ diff -up rpcbind-1.2.5/src/rpcb_stat.c.orig rpcbind-1.2.5/src/rpcb_stat.c | ||||
|  	for (rl = inf[rtype].rmtinfo; rl; rl = rl->next) { | ||||
|   | ||||
| diff -up rpcbind-1.2.5/src/rpcinfo.c.orig rpcbind-1.2.5/src/rpcinfo.c
 | ||||
| --- rpcbind-1.2.5/src/rpcinfo.c.orig	2019-11-11 10:52:54.212281436 -0500
 | ||||
| +++ rpcbind-1.2.5/src/rpcinfo.c	2019-11-11 10:53:56.755677950 -0500
 | ||||
| --- rpcbind-1.2.5/src/rpcinfo.c.orig	2020-02-06 14:19:34.193330210 -0500
 | ||||
| +++ rpcbind-1.2.5/src/rpcinfo.c	2020-02-06 14:20:19.073973959 -0500
 | ||||
| @@ -693,11 +693,11 @@ reply_proc (res, who, nconf)
 | ||||
|      } | ||||
|    if (!(uaddr = taddr2uaddr (nconf, who))) | ||||
| @ -55,9 +55,9 @@ diff -up rpcbind-1.2.5/src/rpcinfo.c.orig rpcbind-1.2.5/src/rpcinfo.c | ||||
|  } | ||||
|   | ||||
| diff -up rpcbind-1.2.5/src/util.c.orig rpcbind-1.2.5/src/util.c
 | ||||
| --- rpcbind-1.2.5/src/util.c.orig	2018-08-15 10:51:19.000000000 -0400
 | ||||
| +++ rpcbind-1.2.5/src/util.c	2019-11-11 10:53:56.756677956 -0500
 | ||||
| @@ -322,9 +322,10 @@ network_init()
 | ||||
| --- rpcbind-1.2.5/src/util.c.orig	2020-02-06 14:20:51.564439986 -0500
 | ||||
| +++ rpcbind-1.2.5/src/util.c	2020-02-06 14:20:39.994274027 -0500
 | ||||
| @@ -322,13 +322,20 @@ network_init()
 | ||||
|  	/* | ||||
|  	 * Now join the RPC ipv6 multicast group on all interfaces. | ||||
|  	 */ | ||||
| @ -70,14 +70,25 @@ diff -up rpcbind-1.2.5/src/util.c.orig rpcbind-1.2.5/src/util.c | ||||
|  	mreq6.ipv6mr_interface = 0; | ||||
|  	inet_pton(AF_INET6, RPCB_MULTICAST_ADDR, &mreq6.ipv6mr_multiaddr); | ||||
|   | ||||
| @@ -352,8 +353,8 @@ network_init()
 | ||||
|  	s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); | ||||
| +	if (s < 0) {
 | ||||
| +	    if (debugging)
 | ||||
| +		    fprintf(stderr, "socket(AF_INET6) failed: %s\n", strerror(errno));
 | ||||
| +	    freeaddrinfo (res);
 | ||||
| +	    return;
 | ||||
| +	}
 | ||||
|   | ||||
|  	/* | ||||
|  	 * Loop through all interfaces. For each IPv6 multicast-capable | ||||
| @@ -351,9 +358,9 @@ network_init()
 | ||||
|  			if (debugging) | ||||
|  				perror("setsockopt v6 multicast"); | ||||
|  	} | ||||
| +	close(s);
 | ||||
|  #endif | ||||
| -
 | ||||
| -	/* close(s); */
 | ||||
| +	freeaddrinfo (res);
 | ||||
| +	close(s);
 | ||||
|  } | ||||
|   | ||||
|  struct sockaddr * | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
| 
 | ||||
| Name:           rpcbind | ||||
| Version:        1.2.5 | ||||
| Release:        5%{?dist} | ||||
| Release:        7%{?dist} | ||||
| Summary:        Universal Addresses to RPC Program Number Mapper | ||||
| Group:          System Environment/Daemons | ||||
| License:        BSD | ||||
| @ -149,6 +149,12 @@ fi | ||||
| %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} | ||||
| 
 | ||||
| %changelog | ||||
| * Thu Feb  6 2020 Steve Dickson <steved@redhat.com> - 1.2.5-7 | ||||
| - Clean up a error path found by a covscan (bz 1602680) | ||||
| 
 | ||||
| * Thu Jan 16 2020 Steve Dickson <steved@redhat.com> - 1.2.5-6 | ||||
| - Use sysconfig variable in service file (bz 1764985) | ||||
| 
 | ||||
| * Mon Nov 11 2019 Steve Dickson <steved@redhat.com> - 1.2.5-5 | ||||
| - Removed some issues found by covscan (bz 1602680) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user