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:
parent
790b62bca5
commit
15ebbad146
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user