mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-20 02:42:09 +03:00
scp: option to not quote paths (#803)
A new flag named `LIBSSH2_FLAG_QUOTE_PATHS` has been added, to make libssh2 not quote file paths sent to the remote's scp subsystem. Some custom ssh daemons cannot handle quoted paths, and this makes this flag useful. Authored-by: Jörgen Sigvardsson <jorgen.sigvardsson@westermo.com>
This commit is contained in:
committed by
GitHub
parent
31e6d95d01
commit
0a500b3554
@@ -578,8 +578,9 @@ struct _LIBSSH2_PUBLICKEY
|
||||
#define LIBSSH2_SCP_RESPONSE_BUFLEN 256
|
||||
|
||||
struct flags {
|
||||
int sigpipe; /* LIBSSH2_FLAG_SIGPIPE */
|
||||
int compress; /* LIBSSH2_FLAG_COMPRESS */
|
||||
int sigpipe; /* LIBSSH2_FLAG_SIGPIPE */
|
||||
int compress; /* LIBSSH2_FLAG_COMPRESS */
|
||||
int quote_paths; /* LIBSSH2_FLAG_QUOTE_PATHS */
|
||||
};
|
||||
|
||||
struct _LIBSSH2_SESSION
|
||||
|
||||
Reference in New Issue
Block a user