Hello
Try it
int MscMoveFile(char const *pszOldName, char const *pszNewName)
{
const char *old_name=pszOldName, *new_name=pszNewName;
#ifndef WIN32
/*See if any of the files are actually symlinks */
char buffer[SYS_MAX_PATH];
int nr;
if ((nr=readlink(pszOldName,buffer,SYS_MAX_PATH-1))!=-1) {
buffer[nr]='\0';
old_name=buffer;
}
if ((nr=readlink(pszNewName,buffer,SYS_MAX_PATH-1))!=-1) {
buffer[nr]='\0';
new_name=buffer;
}
#endif
if (MscCopyFile(new_name, old_name) < 0)
return (ErrGetErrorCode());
return (SysRemove(old_name));
}
Radu
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]