mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
Some compiler fix for open(). It needs the mode argument if
O_CREAT is used.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@594 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: f69a6e1d23
Author: nightshad <nightshad@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2010-05-20 (Thu, 20 May 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -467,7 +467,7 @@ unsigned int CWebserverRequest::HandlePostBoundary(std::string boundary,
|
|||||||
ParameterList[var_name+"_upload_filename"] = upload_filename;
|
ParameterList[var_name+"_upload_filename"] = upload_filename;
|
||||||
|
|
||||||
// open file for write
|
// open file for write
|
||||||
int fd = open(upload_filename.c_str(), O_WRONLY|O_CREAT|O_TRUNC);
|
int fd = open(upload_filename.c_str(), O_WRONLY|O_CREAT|O_TRUNC, 0644);
|
||||||
if (fd<=0)
|
if (fd<=0)
|
||||||
{
|
{
|
||||||
aprintf("cannot open file %s: ", upload_filename.c_str());
|
aprintf("cannot open file %s: ", upload_filename.c_str());
|
||||||
|
Reference in New Issue
Block a user