mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
scp: Fixed result of ssh_scp_string_mode() to get SCP working.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
4c300313c3
commit
f2c2687ca6
@ -814,7 +814,7 @@ int ssh_scp_integer_mode(const char *mode){
|
|||||||
*/
|
*/
|
||||||
char *ssh_scp_string_mode(int mode){
|
char *ssh_scp_string_mode(int mode){
|
||||||
char buffer[16];
|
char buffer[16];
|
||||||
snprintf(buffer,sizeof(buffer),"%.4o",mode);
|
snprintf(buffer,sizeof(buffer),"%.4d",mode);
|
||||||
return strdup(buffer);
|
return strdup(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user