Remove sys_chroot() - libreplace already provides an alternative.
[kai/samba-autobuild/.git] / source3 / lib / system.c
index da2797322ace2c011d7afa92fdfd251a4d4ff097..d23e7ae6db46b5275276091679c03fededa0d196 100644 (file)
@@ -565,24 +565,6 @@ char *sys_getwd(char *s)
        return wd;
 }
 
-/*******************************************************************
-os/2 also doesn't have chroot
-********************************************************************/
-int sys_chroot(const char *dname)
-{
-#ifndef HAVE_CHROOT
-       static int done;
-       if (!done) {
-               DEBUG(1,("WARNING: no chroot!\n"));
-               done=1;
-       }
-       errno = ENOSYS;
-       return -1;
-#else
-       return(chroot(dname));
-#endif
-}
-
 #if defined(HAVE_POSIX_CAPABILITIES)
 
 /**************************************************************************