Only backup real files.

Fixes hang when backing up droid.

Change-Id: Ie8b5c9f76c39c2e6c2cdf1e3b03f56ae37912bad
This commit is contained in:
Dianne Hackborn
2010-03-18 17:45:15 -07:00
parent 6d33c5adde
commit 738b758641

View File

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