summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-09-09 12:38:30 -0700
committerJeff Sharkey <jsharkey@android.com>2014-09-09 12:38:30 -0700
commit41b3cfa29602d5f5065e7eafc25692cd75dc1871 (patch)
tree78bfbf9674c634d7681139b27b1391b100f3a9fd /adb
parent97b536f1fbfd1fa711833b7dc92aed902dea4bdf (diff)
downloadsystem_core-41b3cfa29602d5f5065e7eafc25692cd75dc1871.zip
system_core-41b3cfa29602d5f5065e7eafc25692cd75dc1871.tar.gz
system_core-41b3cfa29602d5f5065e7eafc25692cd75dc1871.tar.bz2
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
Diffstat (limited to 'adb')
-rw-r--r--adb/commandline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index b268ca5..51c039e 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -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);