Merge "Only full-data back up regular files + directories" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b3ca7c26e1
@@ -649,10 +649,11 @@ public abstract class BackupAgent extends ContextWrapper {
|
|||||||
File file = scanQueue.remove(0);
|
File file = scanQueue.remove(0);
|
||||||
String filePath;
|
String filePath;
|
||||||
try {
|
try {
|
||||||
// Ignore symlinks outright
|
// Ignore things that aren't "real" files or dirs
|
||||||
StructStat stat = Os.lstat(file.getPath());
|
StructStat stat = Os.lstat(file.getPath());
|
||||||
if (OsConstants.S_ISLNK(stat.st_mode)) {
|
if (!OsConstants.S_ISREG(stat.st_mode)
|
||||||
if (DEBUG) Log.i(TAG, "Symlink (skipping)!: " + file);
|
&& !OsConstants.S_ISDIR(stat.st_mode)) {
|
||||||
|
if (DEBUG) Log.i(TAG, "Not a file/dir (skipping)!: " + file);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user