29 |
# include <strings.h> |
# include <strings.h> |
30 |
#endif |
#endif |
31 |
#include <errno.h> |
#include <errno.h> |
32 |
|
#include <mailutils/errno.h> |
33 |
#include <mu_dbm.h> |
#include <mu_dbm.h> |
34 |
#include <xalloc.h> |
#include <xalloc.h> |
35 |
|
|
47 |
} |
} |
48 |
if ((st.st_mode & 0777) != mode) |
if ((st.st_mode & 0777) != mode) |
49 |
{ |
{ |
50 |
errno = EPERM; |
errno = MU_ERR_UNSAFE_PERMS; |
51 |
return 1; |
return 1; |
52 |
} |
} |
53 |
return 0; |
return 0; |
54 |
} |
} |
69 |
} |
} |
70 |
if ((st.st_mode & 0777) != mode) |
if ((st.st_mode & 0777) != mode) |
71 |
{ |
{ |
72 |
errno = EPERM; |
errno = MU_ERR_UNSAFE_PERMS; |
73 |
return 1; |
return 1; |
74 |
} |
} |
75 |
return 0; |
return 0; |
76 |
} |
} |