commit | 17f04d430569bc34210c51e22c1718be396f452e | [log] [tgz] |
---|---|---|
author | Gilles Debunne <debunne@google.com> | Thu Jun 09 10:25:25 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Jun 09 10:25:25 2011 -0700 |
tree | 713706e3b687bb494c536ef68d1314634302de9f | |
parent | 71636e8f655acd29b0ac07f7d92ead23a7d5b428 [diff] | |
parent | f4e97bbd86b24e3f69ae76e3082af71fefbdc15b [diff] |
Merge "Add SwitchPreference"
diff --git a/libs/utils/BackupHelpers.cpp b/libs/utils/BackupHelpers.cpp index f933199..87549fe 100644 --- a/libs/utils/BackupHelpers.cpp +++ b/libs/utils/BackupHelpers.cpp
@@ -525,6 +525,7 @@ String8 prefix; const int isdir = S_ISDIR(s.st_mode); + if (isdir) s.st_size = 0; // directories get no actual data in the tar stream // !!! TODO: use mmap when possible to avoid churning the buffer cache // !!! TODO: this will break with symlinks; need to use readlink(2)