[BACK]Return to el.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libedit

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libedit/el.c between version 1.16 and 1.17

version 1.16, 2000/05/15 12:15:38 version 1.17, 2000/06/28 20:37:44
Line 406  el_source(el, fname)
Line 406  el_source(el, fname)
   
     fp = NULL;      fp = NULL;
     if (fname == NULL) {      if (fname == NULL) {
         fname = &elpath[1];          if (issetugid())
         if ((fp = fopen(fname, "r")) == NULL) {              return -1;
             if ((ptr = getenv("HOME")) == NULL)          if ((ptr = getenv("HOME")) == NULL)
                 return -1;              return -1;
             if (strlcpy(path, ptr,    sizeof(path)) >= sizeof(path))          if (strlcpy(path, ptr,    sizeof(path)) >= sizeof(path))
                 return -1;              return -1;
             if (strlcat(path, elpath, sizeof(path)) >= sizeof(path))          if (strlcat(path, elpath, sizeof(path)) >= sizeof(path))
                 return -1;              return -1;
             fname = path;          fname = path;
         }  
     }      }
     if (fp == NULL)      if (fp == NULL)
         fp = fopen(fname, "r");          fp = fopen(fname, "r");

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>