Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
95d3dfc8
Commit
95d3dfc8
authored
Nov 23, 2001
by
Niels Möller
Browse files
(sftp_process_readdir): Clear errno
before calling readdir. Rev: src/sftp/sftp-server.c:1.14
parent
792b2c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sftp/sftp-server.c
View file @
95d3dfc8
...
...
@@ -525,6 +525,10 @@ sftp_process_readdir(struct sftp_ctx *ctx)
if
(
!
sftp_get_handle_dir
(
ctx
,
&
dir
))
return
sftp_bad_message
(
ctx
);
/* readdir doesn't modify errno on EOF, so we need to clear it
* first. */
errno
=
0
;
entry
=
readdir
(
dir
->
dir
);
if
(
!
entry
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment