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:
@ -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.
|
||||
********************************************************************/
|
||||
|
Reference in New Issue
Block a user