From 703ed152147d90a549a2fee7cda5771703e502a0 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Mon, 19 Mar 2012 15:52:03 -0700 Subject: run minadbd as shell user Make minadbd drop its root privileges after initializing. We need to make the /tmp directory writable by the shell group so that it can drop the sideloaded file there. Change-Id: I67b292cf769383f0f67fb934e5a80d408a4c131d --- minadbd/services.c | 1 + 1 file changed, 1 insertion(+) (limited to 'minadbd/services.c') diff --git a/minadbd/services.c b/minadbd/services.c index 8fc8b3ccb..aef37f7e4 100644 --- a/minadbd/services.c +++ b/minadbd/services.c @@ -53,6 +53,7 @@ static void sideload_service(int s, void *cookie) fd = adb_creat(ADB_SIDELOAD_FILENAME, 0644); if(fd < 0) { + fprintf(stderr, "failed to create %s\n", ADB_SIDELOAD_FILENAME); adb_close(s); return; } -- cgit v1.2.3