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

Commit 09c5bbf0 authored by Josh Gao's avatar Josh Gao
Browse files

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
parent ff2e26b2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);