mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
getfsent(3) will return NULL on EOF or error.
MFC after: 2 weeks.
This commit is contained in:
parent
028d447b59
commit
deaa3563c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298239
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user