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). */
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];