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
31ccf5ce
...
31ccf5ce42c695366b88e7b7d2eb8375949ff362
authored
2005-11-15 15:14:50 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mailbox_folder_create): Do not try to select previous level if given a protocol…
… spec, other than `file:'
1 parent
ff6875c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
mailbox/mailbox.c
mailbox/mailbox.c
View file @
31ccf5c
...
...
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <errno.h>
#include <strdup.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
...
...
@@ -37,10 +38,11 @@
#include <mailutils/url.h>
#include <mailutils/attribute.h>
#include <mailutils/message.h>
#include <mailutils/mutil.h>
#include <mailbox0.h>
int
static
int
mailbox_folder_create
(
mu_folder_t
*
pfolder
,
const
char
*
name
)
{
int
rc
;
...
...
@@ -48,9 +50,9 @@ mailbox_folder_create (mu_folder_t *pfolder, const char *name)
if
(
!
fname
)
return
ENOMEM
;
p
=
strrchr
(
fname
,
'/'
);
/* FIXME: Is this always appropriate? */
if
(
p
)
if
(
p
&&
!
(
mu_is_proto
(
fname
)
&&
strncmp
(
p
,
"file:"
,
5
))
)
*
p
=
0
;
rc
=
mu_folder_create
(
pfolder
,
fname
);
free
(
fname
);
...
...
Please
register
or
sign in
to post a comment