rpms/krb5/devel krb5-trunk-close-err.patch,NONE,1.1

Nalin Dahyabhai nalin at fedoraproject.org
Thu Feb 19 23:11:41 UTC 2009


Author: nalin

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

Added Files:
	krb5-trunk-close-err.patch 
Log Message:
- add a patch to catch out-of-space errors rcp'ing files to NFS destinations


krb5-trunk-close-err.patch:

--- NEW FILE krb5-trunk-close-err.patch ---
Check for errors returned by close(), which is when we notice out-of-space
errors on NFS.  Patch by Tomas Smetana.  RT#6399

Index: src/appl/bsd/krcp.c
===================================================================
--- src/appl/bsd/krcp.c	(revision 22038)
+++ src/appl/bsd/krcp.c	(working copy)
@@ -1115,7 +1115,10 @@
 	  wrerr++;
 	if (ftruncate(of, size))
 	  error("rcp: can't truncate %s: %s\n", nambuf, error_message(errno));
-	(void) close(of);
+	if (close(of) != 0)
+	{
+		error("rcp: error closing %s: %s\n", nambuf, error_message(errno));
+	}
 	(void) response();
 	if (setimes) {
 	    setimes = 0;




More information about the fedora-extras-commits mailing list