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:
François Revol 2008-01-09 18:56:20 +00:00
parent 42b2e5d59a
commit 6298fd4531
2 changed files with 4 additions and 2 deletions

View File

@ -245,8 +245,6 @@ FtpClient::PutFile(const string& local, const string& remote, ftp_mode mode)
if (rc) {
_GetReply(replyString, code, codeType);
rc = codeType <= 2;
// at least BeOS' ftpd forces 640 which RobinHood doesn't like...
Chmod(remote, "644");
}
return rc;

View File

@ -706,6 +706,10 @@ VideoConsumer::FtpSave(char* filename)
if (ftp->PutFile((string)filename, (string)"temp")) {
// send the file to the server
ftp->Chmod((string)filename, (string)"644");
// make it world readable
UpdateFtpStatus("Renaming ...");
if (ftp->MoveFile((string)"temp", (string)filename)) {