Follow-up to 5593372f, regression in remounting read-write at boot

A subtle regression was introduced in 5593372f, 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.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-05-01 19:28:50 +02:00
1 parent 9bce8f9584
commit a685b698c2
1 file changed
+2 -2
+2 -2
View File
@@ -232,8 +232,8 @@ static void fs_remount_root(int fsckerr)
return; return;
while ((mnt = getmntent(fp))) { while ((mnt = getmntent(fp))) {
if (strcmp(mnt->mnt_dir, "/")) if (!strcmp(mnt->mnt_dir, "/"))
continue; break;
} }
/* If / is not listed in fstab, or listed as 'ro', leave it alone */ /* If / is not listed in fstab, or listed as 'ro', leave it alone */