mirror of
https://review.haiku-os.org/haiku
synced 2025-02-21 21:19:09 +01:00
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:
parent
42b2e5d59a
commit
6298fd4531
@ -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;
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user