Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
53dab910
...
53dab91058bccd0bee7dcf7f520dbf49c8b30143
authored
2003-09-05 09:03:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_fcheck_perm, mu_check_perm): Return
MU_ERR_UNSAFE_PERMS when appropriate.
1 parent
5e267581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
lib/mu_dbm.c
lib/mu_dbm.c
View file @
53dab91
...
...
@@ -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
;
}
...
...
Please
register
or
sign in
to post a comment