sftp also needs chmod...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23322 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -245,8 +245,6 @@ FtpClient::PutFile(const string& local, const string& remote, ftp_mode mode)
|
|||||||
if (rc) {
|
if (rc) {
|
||||||
_GetReply(replyString, code, codeType);
|
_GetReply(replyString, code, codeType);
|
||||||
rc = codeType <= 2;
|
rc = codeType <= 2;
|
||||||
// at least BeOS' ftpd forces 640 which RobinHood doesn't like...
|
|
||||||
Chmod(remote, "644");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
@@ -706,6 +706,10 @@ VideoConsumer::FtpSave(char* filename)
|
|||||||
|
|
||||||
if (ftp->PutFile((string)filename, (string)"temp")) {
|
if (ftp->PutFile((string)filename, (string)"temp")) {
|
||||||
// send the file to the server
|
// send the file to the server
|
||||||
|
|
||||||
|
ftp->Chmod((string)filename, (string)"644");
|
||||||
|
// make it world readable
|
||||||
|
|
||||||
UpdateFtpStatus("Renaming ...");
|
UpdateFtpStatus("Renaming ...");
|
||||||
|
|
||||||
if (ftp->MoveFile((string)"temp", (string)filename)) {
|
if (ftp->MoveFile((string)"temp", (string)filename)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user