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

Commit bed6eea3 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "libsparse: Don't spam errors in sparse_file_import_auto."

parents d17cefe7 a7fd7b16
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ struct sparse_file* sparse_file_import_auto(int fd, bool crc, bool verbose) {
  int64_t len;
  int ret;

  s = sparse_file_import(fd, verbose, crc);
  s = sparse_file_import(fd, false, crc);
  if (s) {
    return s;
  }
@@ -686,6 +686,9 @@ struct sparse_file* sparse_file_import_auto(int fd, bool crc, bool verbose) {
  if (!s) {
    return nullptr;
  }
  if (verbose) {
    sparse_file_verbose(s);
  }

  ret = sparse_file_read_normal(s, fd);
  if (ret < 0) {