Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-vold: Commit

system/vold


Commit MetaInfo

Révision76225b191e6b27be2f6d87a6c04d6e997e0e63ee (tree)
l'heure2018-08-11 05:31:36
AuteurJeff Sharkey <jsharkey@andr...>
Commiterandroid-build-team Robot

Message de Log

Merge commit '635193ab36302e5f65e99c7df2f256cfd37068c7' into am-b7f1a67b-2024-4274-aa7d-e88e8cceb407

* commit '635193ab36302e5f65e99c7df2f256cfd37068c7':

Require quotes when searching for blkid keys.

Bug: 80436257
Test: manual
Change-Id: I4cbae2d594edefa10e5e2c5236d17fe3d37818cd
(cherry picked from commit 9a35ab6a4f0cbc47ff389f0c632218a39bf49a45)

Change Summary

Modification

--- a/Utils.cpp
+++ b/Utils.cpp
@@ -213,17 +213,17 @@ static status_t readMetadata(const std::string& path, std::string& fsType,
213213 for (const auto& line : output) {
214214 // Extract values from blkid output, if defined
215215 const char* cline = line.c_str();
216- const char* start = strstr(cline, "TYPE=");
216+ const char* start = strstr(cline, "TYPE=\"");
217217 if (start != nullptr && sscanf(start + 5, "\"%127[^\"]\"", value) == 1) {
218218 fsType = value;
219219 }
220220
221- start = strstr(cline, "UUID=");
221+ start = strstr(cline, "UUID=\"");
222222 if (start != nullptr && sscanf(start + 5, "\"%127[^\"]\"", value) == 1) {
223223 fsUuid = value;
224224 }
225225
226- start = strstr(cline, "LABEL=");
226+ start = strstr(cline, "LABEL=\"");
227227 if (start != nullptr && sscanf(start + 6, "\"%127[^\"]\"", value) == 1) {
228228 fsLabel = value;
229229 }
Afficher sur ancien navigateur de dépôt.