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

Commit 7cfcf2d1 authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

Only full-data back up regular files + directories am: da2018ef am: 0d816b8f

am: 86208efd

Change-Id: I3e39c52cf9895de9b893b7ec6c8d3287af7693b0
parents 57e19505 86208efd
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -649,10 +649,11 @@ public abstract class BackupAgent extends ContextWrapper {
                File file = scanQueue.remove(0);
                String filePath;
                try {
                    // Ignore symlinks outright
                    // Ignore things that aren't "real" files or dirs
                    StructStat stat = Os.lstat(file.getPath());
                    if (OsConstants.S_ISLNK(stat.st_mode)) {
                        if (DEBUG) Log.i(TAG, "Symlink (skipping)!: " + file);
                    if (!OsConstants.S_ISREG(stat.st_mode)
                            && !OsConstants.S_ISDIR(stat.st_mode)) {
                        if (DEBUG) Log.i(TAG, "Not a file/dir (skipping)!: " + file);
                        continue;
                    }