svn commit: r218374 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Feb 6 14:07:59 UTC 2011


Author: pjd
Date: Sun Feb  6 14:07:58 2011
New Revision: 218374
URL: http://svn.freebsd.org/changeset/base/218374

Log:
  Treat fstat(2) failure (different than EBADF) as fatal error.
  
  Reported by:	Mikolaj Golub <to.my.trociny at gmail.com>
  MFC after:	1 week

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Sun Feb  6 14:06:37 2011	(r218373)
+++ head/sbin/hastd/hastd.c	Sun Feb  6 14:07:58 2011	(r218374)
@@ -188,6 +188,7 @@ descriptors_assert(const struct hast_res
 			snprintf(msg, sizeof(msg),
 			    "Unable to fstat descriptor %d: %s", fd,
 			    strerror(errno));
+			break;
 		}
 		if (fd == STDIN_FILENO || fd == STDOUT_FILENO ||
 		    fd == STDERR_FILENO) {


More information about the svn-src-head mailing list