rpms/rsh/devel netkit-rsh-0.17-rh461903.patch, NONE, 1.1 rsh.spec, 1.48, 1.49

Adam Tkac atkac at fedoraproject.org
Thu Mar 26 13:13:11 UTC 2009


Author: atkac

Update of /cvs/pkgs/rpms/rsh/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32384

Modified Files:
	rsh.spec 
Added Files:
	netkit-rsh-0.17-rh461903.patch 
Log Message:
- check return value from close to catch errors on NFS filesystems (#461903)


netkit-rsh-0.17-rh461903.patch:

--- NEW FILE netkit-rsh-0.17-rh461903.patch ---
diff -up netkit-rsh-0.17/rcp/rcp.c.closeerr netkit-rsh-0.17/rcp/rcp.c
--- netkit-rsh-0.17/rcp/rcp.c.closeerr	2008-09-10 12:07:43.000000000 +0200
+++ netkit-rsh-0.17/rcp/rcp.c	2008-09-10 12:30:57.000000000 +0200
@@ -810,7 +810,11 @@ bad:			error("rcp: %s: %s\n", np, strerr
 			    strerror(errno));
 			wrerr = DISPLAYED;
 		}
-		(void)close(ofd);
+		if (close(ofd) != 0) {
+			error("rcp: error closing %s: %s\n", np,
+				strerror(errno));
+			wrerr = DISPLAYED;
+		}
 		(void)response();
 		if (setimes && wrerr == NO) {
 			setimes = 0;



Index: rsh.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rsh/devel/rsh.spec,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- rsh.spec	25 Feb 2009 20:35:33 -0000	1.48
+++ rsh.spec	26 Mar 2009 13:12:41 -0000	1.49
@@ -1,7 +1,7 @@
 Summary: Clients for remote access commands (rsh, rlogin, rcp).
 Name: rsh
 Version: 0.17
-Release: 52%{?dist}
+Release: 53%{?dist}
 License: BSD
 Group: Applications/Internet
 
@@ -57,6 +57,7 @@
 Patch36: netkit-rsh-0.17-longname.patch
 Patch37: netkit-rsh-0.17-arg_max.patch
 Patch38: netkit-rsh-0.17-rh448904.patch
+Patch39: netkit-rsh-0.17-rh461903.patch
 
 %description
 The rsh package contains a set of programs which allow users to run
@@ -124,6 +125,7 @@
 %patch36 -p1 -b .longname
 %patch37 -p1 -b .arg_max
 %patch38 -p1 -b .rh448904
+%patch39 -p1 -b .rh461903
 
 # No, I don't know what this is doing in the tarball.
 rm -f rexec/rexec
@@ -192,6 +194,9 @@
 %{_mandir}/man8/*.8*
 
 %changelog
+* Thu Mar 26 2009 Adam Tkac <atkac redhat com> 0.17-53
+- check return value from close to catch errors on NFS filesystems (#461903)
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.17-52
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list