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
6533f0c4
...
6533f0c4a2aa3f8b188f4d91a26da8822e7ec43d
authored
2002-08-05 08:11:31 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap4d_list): Remove state check. Bugfix: allow a meta-closure (*) in any position of the word.
1 parent
ddde71e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
imap4d/list.c
imap4d/list.c
View file @
6533f0c
...
...
@@ -65,9 +65,6 @@ imap4d_list (struct imap4d_command *command, char *arg)
char
*
wcard
;
const
char
*
delim
=
"/"
;
if
(
!
(
command
->
states
&
state
))
return
util_finish
(
command
,
RESP_BAD
,
"Wrong state"
);
ref
=
util_getword
(
arg
,
&
sp
);
wcard
=
util_getword
(
NULL
,
&
sp
);
if
(
!
ref
||
!
wcard
)
...
...
@@ -143,6 +140,7 @@ imap4d_list (struct imap4d_command *command, char *arg)
dir
++
;
}
else
dir
=
wcard
;
break
;
}
...
...
@@ -169,7 +167,7 @@ imap4d_list (struct imap4d_command *command, char *arg)
inode_rec
.
next
=
NULL
;
inode_rec
.
inode
=
st
.
st_ino
;
inode_rec
.
dev
=
st
.
st_dev
;
list_file
(
cwd
,
ref
,
(
dir
)
?
dir
:
""
,
delim
,
&
inode_rec
);
list_file
(
cwd
,
ref
,
(
dir
)
?
dir
:
wcard
,
delim
,
&
inode_rec
);
chdir
(
homedir
);
}
free
(
cwd
);
...
...
Please
register
or
sign in
to post a comment