summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-09-05 09:03:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-09-05 09:03:00 +0000
commit53dab91058bccd0bee7dcf7f520dbf49c8b30143 (patch)
treef418dd2c91ac73a6d2a7a9f6bfe449b9eadadc1d /lib
parent5e2675817ac312938e7b0d29fe6a8a9c5aab2ae8 (diff)
downloadmailutils-53dab91058bccd0bee7dcf7f520dbf49c8b30143.tar.gz
mailutils-53dab91058bccd0bee7dcf7f520dbf49c8b30143.tar.bz2
(mu_fcheck_perm, mu_check_perm): Return
MU_ERR_UNSAFE_PERMS when appropriate.
Diffstat (limited to 'lib')
-rw-r--r--lib/mu_dbm.c9
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
@@ -31,2 +31,3 @@
#include <errno.h>
+#include <mailutils/errno.h>
#include <mu_dbm.h>
@@ -48,4 +49,4 @@ mu_fcheck_perm (int fd, int mode)
{
- errno = EPERM;
- return 1;
+ errno = MU_ERR_UNSAFE_PERMS;
+ return 1;
}
@@ -70,4 +71,4 @@ mu_check_perm (const char *name, int mode)
{
- errno = EPERM;
- return 1;
+ errno = MU_ERR_UNSAFE_PERMS;
+ return 1;
}

Return to:

Send suggestions and report system problems to the System administrator.