chmod is not available in VisualAge
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1057,13 +1057,15 @@ wxCopyFile (const wxString& file1, const wxString& file2)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __VISAGECPP__
|
||||||
|
// no chmod in VA. SHould be some permission API for HPFS386 partitions however
|
||||||
if ( chmod(file2, fbuf.st_mode) != 0 )
|
if ( chmod(file2, fbuf.st_mode) != 0 )
|
||||||
{
|
{
|
||||||
wxLogSysError(_("Impossible to set permissions for the file '%s'"),
|
wxLogSysError(_("Impossible to set permissions for the file '%s'"),
|
||||||
file2.c_str());
|
file2.c_str());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user