From f2c2687ca6c6c7e25c9a547227027ab28eb4fc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Fri, 18 Oct 2013 14:58:04 +0200 Subject: [PATCH] scp: Fixed result of ssh_scp_string_mode() to get SCP working. Reviewed-by: Andreas Schneider --- src/scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scp.c b/src/scp.c index 6838a3cd..db07aed4 100644 --- a/src/scp.c +++ b/src/scp.c @@ -814,7 +814,7 @@ int ssh_scp_integer_mode(const char *mode){ */ char *ssh_scp_string_mode(int mode){ char buffer[16]; - snprintf(buffer,sizeof(buffer),"%.4o",mode); + snprintf(buffer,sizeof(buffer),"%.4d",mode); return strdup(buffer); }