daemon: Make the RUN_PARTED macro take an error statement.
[libguestfs.git] / daemon / guestfsd.c
index 84b62ab..69baf9e 100644 (file)
@@ -227,6 +227,7 @@ main (int argc, char *argv[])
   setenv ("PATH", "/sbin:/usr/sbin:/bin:/usr/bin", 1);
   setenv ("SHELL", "/bin/sh", 1);
   setenv ("LC_ALL", "C", 1);
+  setenv ("TERM", "dumb", 1);
 
 #ifndef WIN32
   /* We document that umask defaults to 022 (it should be this anyway). */
@@ -1065,7 +1066,7 @@ device_name_translation (char *device, const char *func)
 int
 prog_exists (const char *prog)
 {
-  static const char *dirs[] =
+  static const char * const dirs[] =
     { "/sbin", "/usr/sbin", "/bin", "/usr/bin" };
   size_t i;
   char buf[1024];