Have dialserver explicitely chown appclient:video /tmp/runapp.tmp

This will allow dialserver to run as root (which is currently required for Sage
systems) and also allow miniclient / Basil to read and write the /tmp/runapp
file.

Change-Id: I888787fcce9ad3548d7d642c611430140d32226e
diff --git a/src/server/main.c b/src/server/main.c
index 1f650c2..33e83dc 100644
--- a/src/server/main.c
+++ b/src/server/main.c
@@ -221,6 +221,11 @@
   fsync(fileno(runapp));
   fclose(runapp);
   runapp=NULL;
+  int appclientUid = 201;
+  int videoGid = 200;
+  if (chown("/tmp/runapp.tmp", appclientUid, videoGid)) {
+    fprintf(stderr, "Error chowning /tmp/runapp.tmp file.  App launch may fail.");
+  }
   if (rename("/tmp/runapp.tmp", "/tmp/runapp")) {
     fprintf(stderr, "Error renaming /tmp/runapp.tmp file\n");
     return kDIALStatusStopped;