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
4a8b0ce8
...
4a8b0ce879036a65bc72707b0911ce0b3a4f5783
authored
2006-07-22 08:18:14 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_scheme_autodetect_p): Return true if scheme is the name of an existing file or directory.
1 parent
1f43050e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
mailbox/mutil.c
mailbox/mutil.c
View file @
4a8b0ce
...
...
@@ -1228,7 +1228,9 @@ mu_scheme_autodetect_p (const char *scheme, const char **path)
*
path
+=
MU_FILE_SCHEME_LEN
;
return
1
;
}
if
(
strncmp
(
MU_PATH_SCHEME
,
scheme
,
MU_PATH_SCHEME_LEN
)
==
0
)
if
(
access
(
scheme
,
F_OK
)
==
0
/* FIXME: this can return true even if the folder is unreadable */
||
strncmp
(
MU_PATH_SCHEME
,
scheme
,
MU_PATH_SCHEME_LEN
)
==
0
)
return
1
;
return
0
;
}
...
...
Please
register
or
sign in
to post a comment