diff options
Diffstat (limited to 'lib/mu_dbm.c')
-rw-r--r-- | lib/mu_dbm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/mu_dbm.c b/lib/mu_dbm.c index 6bf9c68a6..618d2a901 100644 --- a/lib/mu_dbm.c +++ b/lib/mu_dbm.c @@ -29,6 +29,7 @@ # include <strings.h> #endif #include <errno.h> +#include <mailutils/errno.h> #include <mu_dbm.h> #include <xalloc.h> @@ -46,8 +47,8 @@ mu_fcheck_perm (int fd, int mode) } if ((st.st_mode & 0777) != mode) { - errno = EPERM; - return 1; + errno = MU_ERR_UNSAFE_PERMS; + return 1; } return 0; } @@ -68,8 +69,8 @@ mu_check_perm (const char *name, int mode) } if ((st.st_mode & 0777) != mode) { - errno = EPERM; - return 1; + errno = MU_ERR_UNSAFE_PERMS; + return 1; } return 0; } |