Package: osh Version: 1.7-7 Severity: important I have replaced sys_errlist with strerror wihich is more portable. It also allows osh to compile and run on GNU HURD.
James Morrison --- handlers.old.c Sun Jul 29 13:25:18 2001 +++ handlers.c Sun Jul 29 13:26:19 2001 @@ -569,10 +569,6 @@ { int x; - /* Removed to compile for debian - extern char *sys_errlist[]; - */ - if (argc>2) { fprintf(stderr,"cd: Too many arguments\n"); @@ -584,7 +580,7 @@ else x=chdir(getenv("HOME")); if (x) { - fprintf(stderr,"cd: %s\n",sys_errlist[errno]); + fprintf(stderr,"cd: %s\n",strerror(errno)); logit('-'); } else @@ -602,9 +598,6 @@ FILE *input_file; FILE *k; char *file_name; - /* Removed to compile on debian - extern char *sys_errlist[]; - */ char temp[255], temp2[255]; char c; int x,y; @@ -628,7 +621,7 @@ } if (input_file==NULL) { logit('-'); - fprintf(stderr,"more: %s\n",sys_errlist[errno]); + fprintf(stderr,"more: %s\n",strerror(errno)); return; } k=fopen("/dev/tty","r");