Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2016 01:59:26 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298239 - head/sbin/quotacheck
Message-ID:  <201604190159.u3J1xQRC099098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue Apr 19 01:59:26 2016
New Revision: 298239
URL: https://svnweb.freebsd.org/changeset/base/298239

Log:
  getfsent(3) will return NULL on EOF or error.
  
  MFC after:	2 weeks.

Modified:
  head/sbin/quotacheck/preen.c

Modified: head/sbin/quotacheck/preen.c
==============================================================================
--- head/sbin/quotacheck/preen.c	Tue Apr 19 01:57:56 2016	(r298238)
+++ head/sbin/quotacheck/preen.c	Tue Apr 19 01:59:26 2016	(r298239)
@@ -105,7 +105,7 @@ checkfstab(int uflag, int gflag)
 			warnx("Can't open checklist file: %s\n", _PATH_FSTAB);
 			return (8);
 		}
-		while ((fs = getfsent()) != 0) {
+		while ((fs = getfsent()) != NULL) {
 			if (fs->fs_passno > passno && fs->fs_passno < nextpass)
 				nextpass = fs->fs_passno;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604190159.u3J1xQRC099098>