Only backup real files.
Fixes hang when backing up droid. Change-Id: Ie8b5c9f76c39c2e6c2cdf1e3b03f56ae37912bad
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user