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
8bd1f7da
...
8bd1f7da2af13426901e87104c09d9639b685ae0
authored
2002-01-21 06:26:19 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_fcheck_perm, mu_check_perm): Return OK if mode is 0.
1 parent
92cb638f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
lib/mu_dbm.c
lib/mu_dbm.c
View file @
8bd1f7d
...
...
@@ -45,7 +45,10 @@ mu_fcheck_perm (int fd, int mode)
return
1
;
}
if
((
st
.
st_mode
&
0777
)
!=
mode
)
{
errno
=
EPERM
;
return
1
;
}
return
0
;
}
...
...
@@ -54,6 +57,8 @@ mu_check_perm (char *name, int mode)
{
struct
stat
st
;
if
(
mode
==
0
)
return
0
;
if
(
stat
(
name
,
&
st
)
==
-
1
)
{
if
(
errno
==
ENOENT
)
...
...
@@ -62,7 +67,10 @@ mu_check_perm (char *name, int mode)
return
1
;
}
if
((
st
.
st_mode
&
0777
)
!=
mode
)
{
errno
=
EPERM
;
return
1
;
}
return
0
;
}
...
...
Please
register
or
sign in
to post a comment