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

Commit 738b7586 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Only backup real files.

Fixes hang when backing up droid.

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