sftp: Add comment about limitation of sftp_setstat

Fixes: #138

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
(cherry picked from commit 367be19990)
This commit is contained in:
Jakub Jelen
2022-09-22 12:06:18 +02:00
committed by Andreas Schneider
parent e8dccfe1dd
commit 13363975d8

View File

@@ -681,6 +681,11 @@ LIBSSH_API int sftp_rename(sftp_session sftp, const char *original, const char
/**
* @brief Set file attributes on a file, directory or symbolic link.
*
* Note, that this function can only set time values using 32 bit values due to
* the restrictions in the SFTP protocol version 3 implemented by libssh.
* The support for 64 bit time values was introduced in SFTP version 5, which is
* not implemented by libssh nor any major SFTP servers.
*
* @param sftp The sftp session handle.
*
* @param file The file which attributes should be changed.