From 09c5bbf0fb22eb4734bdb05365bba8a12a870939 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 4 Nov 2015 14:35:43 -0800 Subject: [PATCH] adb: remove use of mkdirs from `adb backup`. `adb backup -f nonexistent/directories/foo ` shouldn't create the directory structure if they don't already exist. Change-Id: Ifd8769ed7ee5e733a6635751ad09b714ab58ea4b --- adb/commandline.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/adb/commandline.cpp b/adb/commandline.cpp index 8f0a7cca8..3425df249 100644 --- a/adb/commandline.cpp +++ b/adb/commandline.cpp @@ -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);