Commit 16b5ad8c authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.331
Rev: src/sftp/sftp-server.c:1.9
parent 60966b2c
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,
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment