Follow-up to regression in remounting read-write at boot
A subtle regression was introduced in when moving to get
getmntent() family of APIs.  Finding the 'ro' flag (or not) in the
system fstab broke and Finit never tried to remount / read-write.
@@ -232,8 +232,8 @@ static void fs_remount_root(int fsckerr)
return;
while ((mnt = getmntent(fp))) {
- if (strcmp(mnt->mnt_dir, "/"))
- continue;
+ if (!strcmp(mnt->mnt_dir, "/"))
+ break;
}
/* If / is not listed in fstab, or listed as 'ro', leave it alone */
