1 --- export/src/el.c 2009-09-23 22:55:51.000000000 +0200
2 +++ ../src/el.c 2009-09-23 23:04:26.000000000 +0200
5 #endif /* not lint && not SCCSID */
8 +#define MAXPATHLEN 4096
12 * el.c: EditLine interface functions
18 -#ifdef HAVE_ISSETUGID
19 char path[MAXPATHLEN];
24 -#ifdef HAVE_ISSETUGID
25 static const char elpath[] = "/.editrc";
27 +#ifdef HAVE_ISSETUGID
31 if ((ptr = getenv("HOME")) == NULL)
33 if (strlcpy(path, ptr, sizeof(path)) >= sizeof(path))
35 if (strlcat(path, elpath, sizeof(path)) >= sizeof(path))
40 - * If issetugid() is missing, always return an error, in order
41 - * to keep from inadvertently opening up the user to a security
48 fp = fopen(fname, "r");