Remove sys_chroot() - libreplace already provides an alternative.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 1 Nov 2008 02:46:09 +0000 (03:46 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 1 Nov 2008 02:46:09 +0000 (03:46 +0100)
replace/replace.c
replace/replace.h

index d757a0154e7736e5cf4da9e58d75865804a2345d..0683f556eb8f5fafd48f5bfbfeff0a062026187c 100644 (file)
@@ -667,5 +667,3 @@ char *rep_realpath(const char *path, char *resolved_path)
        return NULL;
 }
 #endif
-
-
index 8d0dd57064c259b248082337dfbbc668f1be9180..d717d6391ca1462d7ddd2a76cb01b7198c20f05d 100644 (file)
@@ -220,6 +220,11 @@ int rep_setegid(gid_t);
 int rep_chown(const char *path, uid_t uid, gid_t gid);
 #endif
 
+#ifndef HAVE_CHROOT
+#define chroot rep_chroot
+int rep_chroot(const char *dirname);
+#endif
+
 #ifndef HAVE_LINK
 #define link rep_link
 int rep_link(const char *oldpath, const char *newpath);