mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
sftp: Reformat sftp_readlink()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit bb4bdec184)
This commit is contained in:
@@ -2612,7 +2612,8 @@ int sftp_symlink(sftp_session sftp, const char *target, const char *dest) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *sftp_readlink(sftp_session sftp, const char *path) {
|
char *sftp_readlink(sftp_session sftp, const char *path)
|
||||||
|
{
|
||||||
sftp_status_message status = NULL;
|
sftp_status_message status = NULL;
|
||||||
sftp_message msg = NULL;
|
sftp_message msg = NULL;
|
||||||
ssh_string path_s = NULL;
|
ssh_string path_s = NULL;
|
||||||
@@ -2623,8 +2624,10 @@ char *sftp_readlink(sftp_session sftp, const char *path) {
|
|||||||
uint32_t id;
|
uint32_t id;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (sftp == NULL)
|
if (sftp == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (path == NULL) {
|
if (path == NULL) {
|
||||||
ssh_set_error_invalid(sftp);
|
ssh_set_error_invalid(sftp);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user