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
16b5ad8c
Commit
16b5ad8c
authored
Apr 02, 2001
by
Niels Möller
Browse files
*** empty log message ***
Rev: ChangeLog:1.331 Rev: src/sftp/sftp-server.c:1.9
parent
60966b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
16b5ad8c
2001-04-02 Niels Mller <nisse@lysator.liu.se>
* src/sftp/sftp-server.c (sftp_process_realpath): Fixed invocation
of pathconf().
Include stdarg.h.
* src/sftp/testsuite: Adapted shell scripts to /bin/sh. Removed
uses of the "function" keyword, and use a full path when sourcing
common.sh.
* src/sftp/testsuite/run-tests: Use /bin/bash, as we use
bash-specific parameter expansion.
2001-04-01 Niels Mller <nisse@cuckoo.hack.org>
* src/sftp/Makefile.am (sftp_server_SOURCES,
...
...
src/sftp/sftp-server.c
View file @
16b5ad8c
...
...
@@ -58,6 +58,7 @@
#include
"xmalloc.h"
#include
<assert.h>
#include
<stdarg.h>
#include
<stdlib.h>
#include
<string.h>
...
...
@@ -714,7 +715,7 @@ sftp_process_realpath(struct sftp_ctx *ctx)
#ifdef PATH_MAX
path_max
=
PATH_MAX
;
#else
path_max
=
pathconf
(
path
,
_PC_PATH_MAX
);
path_max
=
pathconf
(
name
,
_PC_PATH_MAX
);
if
(
path_max
<=
0
)
path_max
=
4096
;
#endif
...
...
Write
Preview
Supports
Markdown
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