[Haiku-commits] r31098 - haiku/trunk/src/system/kernel/fs

axeld at BerliOS axeld at mail.berlios.de
Thu Jun 18 16:29:16 CEST 2009


Author: axeld
Date: 2009-06-18 16:29:15 +0200 (Thu, 18 Jun 2009)
New Revision: 31098
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31098&view=rev

Modified:
   haiku/trunk/src/system/kernel/fs/vfs_boot.cpp
Log:
* Fixed stupid typo with big consequences as pointed out by Rene. Thanks!


Modified: haiku/trunk/src/system/kernel/fs/vfs_boot.cpp
===================================================================
--- haiku/trunk/src/system/kernel/fs/vfs_boot.cpp	2009-06-18 00:35:12 UTC (rev 31097)
+++ haiku/trunk/src/system/kernel/fs/vfs_boot.cpp	2009-06-18 14:29:15 UTC (rev 31098)
@@ -447,7 +447,7 @@
 		if (bootPartition->GetPath(&path) != B_OK)
 			panic("could not get boot device!\n");
 
-		const char *fsName = NULL;
+		const char* fsName = NULL;
 		bool readOnly = false;
 		if (strcmp(bootPartition->ContentType(), "ISO9660 File System") == 0) {
 			fsName = "iso9660:write_overlay:attribute_overlay";
@@ -457,7 +457,7 @@
 		TRACE(("trying to mount boot partition: %s\n", path.Path()));
 		gBootDevice = _kern_mount("/boot", path.Path(), fsName, 0, NULL, 0);
 		if (gBootDevice >= B_OK) {
-			gReadOnlyBootDevice = true;
+			gReadOnlyBootDevice = readOnly;
 			break;
 		}
 	}




More information about the Haiku-commits mailing list