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

Commit 84b446fa authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Only backup real files."

parents 1b13e5a0 738b7586
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -318,7 +318,7 @@ static int backup_dir(FILE* fh, const char* srcPath)
                result = 0;
                result = 0;
                goto done;
                goto done;
            }
            }
        } else {
        } else if (S_ISREG(statBuffer.st_mode)) {
            printf("Saving file %s...\n", fullPath);
            printf("Saving file %s...\n", fullPath);
            
            
            if (write_header(fh, TYPE_FILE, fullPath, &statBuffer) == 0) {
            if (write_header(fh, TYPE_FILE, fullPath, &statBuffer) == 0) {