Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfb72b06 authored by Ketut Putu Kumajaya's avatar Ketut Putu Kumajaya Committed by Dees Troy
Browse files

Fix broken fsflags support

Process_FS_Flags Flags parameter is just a copy not a reference,
not get updated, Mount_Flags always 0 - fix it now.

Thanks to SHM @ XDA-Developers

Change-Id: Ib044db905febfedefee493cfc04fd1cad6f61f8e
parent 00bc7025
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -418,7 +418,7 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) {
	return true;
}

bool TWPartition::Process_FS_Flags(string& Options, int Flags) {
bool TWPartition::Process_FS_Flags(string& Options, int& Flags) {
	int i;
	char *p;
	char *savep;
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ private:
	void Find_Actual_Block_Device();                                          // Determines the correct block device and stores it in Actual_Block_Device

	bool Process_Flags(string Flags, bool Display_Error);                     // Process custom fstab flags
	bool Process_FS_Flags(string& Options, int Flags);                        // Process standard fstab fs flags
	bool Process_FS_Flags(string& Options, int& Flags);                       // Process standard fstab fs flags
	bool Is_File_System(string File_System);                                  // Checks to see if the file system given is considered a file system
	bool Is_Image(string File_System);                                        // Checks to see if the file system given is considered an image
	void Setup_File_System(bool Display_Error);                               // Sets defaults for a file system partition