This website works better with JavaScript.
Home
Explore
Help
Sign In
damien
/
fmail
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
5
Wiki
Activity
Browse Source
Fix test logic in is_usable_as_tmp_dir()
master
Damien Goutte-Gattat
9 years ago
parent
4819ceb7f7
commit
7b6b57e9f7
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
src/fmail.c
+ 2
- 2
src/fmail.c
View File
@ -434,9 +434,9 @@ is_usable_as_tmp_dir(const char *dirname)
if
(
stat
(
dirname
,
&
st_buf
)
!
=
-
1
)
if
(
S_ISDIR
(
st_buf
.
st_mode
)
)
if
(
access
(
dirname
,
R_OK
|
W_OK
)
!
=
-
1
)
return
0
;
return
1
;
return
-
1
;
return
0
;
}
static
const
char
*
Write
Preview
Loading…
Cancel
Save