1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-15 16:59:09 +03:00

Move sys_symlink() to libreplace.

This commit is contained in:
Jelmer Vernooij
2008-11-01 03:35:58 +01:00
parent dbda9adfaf
commit e8cda43e17
7 changed files with 18 additions and 19 deletions

View File

@ -580,20 +580,6 @@ char *sys_getwd(char *s)
return wd;
}
/*******************************************************************
system wrapper for symlink
********************************************************************/
int sys_symlink(const char *oldpath, const char *newpath)
{
#ifndef HAVE_SYMLINK
errno = ENOSYS;
return -1;
#else
return symlink(oldpath, newpath);
#endif
}
/*******************************************************************
Wrapper for lchown.
********************************************************************/