#define _GNU_SOURCE
#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
+#include <unistd.h>
static const char defshells[] = "/bin/sh\n/bin/csh\n";
void setusershell(void)
{
- if (!f) f = fopen("/etc/shells", "rb");
+ if (!f) f = fopen("/etc/shells", "rbe");
if (!f) f = fmemopen((void *)defshells, sizeof defshells - 1, "rb");
}