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:
parent
0e191b5ebc
commit
937afade13
@ -1057,13 +1057,15 @@ wxCopyFile (const wxString& file1, const wxString& file2)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifndef __VISAGECPP__
|
||||
// no chmod in VA. SHould be some permission API for HPFS386 partitions however
|
||||
if ( chmod(file2, fbuf.st_mode) != 0 )
|
||||
{
|
||||
wxLogSysError(_("Impossible to set permissions for the file '%s'"),
|
||||
file2.c_str());
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user