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

Commit 41b3cfa2 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

delete_file() should force removal.

It's a shell command with a pty, but it's not really interactive,
so force the removal to avoid giving users dead-end prompts.

Bug: 17339227
Change-Id: Iaf5d95c49f032066aa741a711a2c45557d93c598
parent 97b536f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1870,7 +1870,7 @@ static int delete_file(transport_type transport, char* serial, char* filename)
    char buf[4096];
    char* quoted;

    snprintf(buf, sizeof(buf), "shell:rm ");
    snprintf(buf, sizeof(buf), "shell:rm -f ");
    quoted = escape_arg(filename);
    strncat(buf, quoted, sizeof(buf)-1);
    free(quoted);