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

This commit is contained in:
David Anderson 2022-06-02 17:57:54 +00:00 committed by Gerrit Code Review
commit bed6eea329

View file

@ -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) {