git-svn: trunk@1731
Tomasz Kojm authored on 2005/10/03 22:19:09... | ... |
@@ -665,7 +665,7 @@ int cli_filecopy(const char *src, const char *dest) |
665 | 665 |
if((s = open(src, O_RDONLY)) == -1) |
666 | 666 |
return -1; |
667 | 667 |
|
668 |
- if((d = open(dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY)) == -1) { |
|
668 |
+ if((d = open(dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, S_IRWXU)) == -1) { |
|
669 | 669 |
close(s); |
670 | 670 |
return -1; |
671 | 671 |
} |