1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-06-03 14:42:01 +03:00

examples: Fix permissions of the file we copy.

Thanks to Baptiste Marchand.
This commit is contained in:
Andreas Schneider 2011-08-03 22:21:43 +02:00
parent 790b62bca5
commit 15ebbad146

View File

@ -182,7 +182,7 @@ static int do_copy(struct location *src, struct location *dest, int recursive){
fd=fileno(src->file);
fstat(fd,&s);
size=s.st_size;
mode = s.st_mode & S_IFMT;
mode = s.st_mode & ~S_IFMT;
filename=ssh_basename(src->path);
} else {
size=0;