pkgin_all: script to auto-install all packages
[minix.git] / lib / libsys / env_panic.c
bloba1622fef460c1912c8f7de825fcfca6524d1f9ab
1 #include "sysutil.h"
2 #include <string.h>
4 /*=========================================================================*
5 * env_panic *
6 *=========================================================================*/
7 void env_panic(key)
8 char *key; /* environment variable whose value is bogus */
10 static char value[EP_BUF_SIZE] = "<unknown>";
11 int s;
12 if ((s=env_get_param(key, value, sizeof(value))) == 0) {
13 if (s != ESRCH) /* only error allowed */
14 printf("WARNING: env_get_param() failed in env_panic(): %d\n", s);
16 printf("Bad environment setting: '%s = %s'\n", key, value);
17 panic("");