Commit 1ab0c955 authored by David Lawrence's avatar David Lawrence
Browse files

map EPERM to ISC_R_NOPERM

parent 91676aba
......@@ -15,12 +15,10 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: errno2result.c,v 1.4 2000/08/01 01:31:14 tale Exp $ */
/* $Id: errno2result.c,v 1.5 2000/11/14 23:37:26 tale Exp $ */
#include <config.h>
#include <errno.h>
#include <isc/result.h>
#include "errno2result.h"
......@@ -36,13 +34,14 @@ isc__errno2result(int posixerrno) {
switch (posixerrno) {
case ENOTDIR:
case ELOOP:
case EINVAL:
case EINVAL: /* XXX sometimes this is not for files */
case ENAMETOOLONG:
case EBADF:
return (ISC_R_INVALIDFILE);
case ENOENT:
return (ISC_R_FILENOTFOUND);
case EACCES:
case EPERM:
return (ISC_R_NOPERM);
case EEXIST:
return (ISC_R_FILEEXISTS);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment