adb: remove use of mkdirs from `adb backup`.

`adb backup -f nonexistent/directories/foo <pkg>` shouldn't create the
directory structure if they don't already exist.

Change-Id: Ifd8769ed7ee5e733a6635751ad09b714ab58ea4b
This commit is contained in:
Josh Gao 2015-11-04 14:35:43 -08:00
parent ff2e26b239
commit 09c5bbf0fb
1 changed files with 0 additions and 1 deletions

View File

@ -950,7 +950,6 @@ static int backup(int argc, const char** argv) {
if (argc < 2) return usage();
adb_unlink(filename);
mkdirs(filename);
int outFd = adb_creat(filename, 0640);
if (outFd < 0) {
fprintf(stderr, "adb: unable to open file %s\n", filename);