summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 03:46:09 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 03:46:09 +0100
commit6a2caa34b24c2225dba9da011eaa5cc3eb8752be (patch)
treec9b5b333cfdc545b6526f7ead67f39a1017e25a1 /lib
parentc2a4db0c633f4cf01834c851efd07b7d891ce737 (diff)
downloadsamba-6a2caa34b24c2225dba9da011eaa5cc3eb8752be.tar.gz
samba-6a2caa34b24c2225dba9da011eaa5cc3eb8752be.tar.bz2
samba-6a2caa34b24c2225dba9da011eaa5cc3eb8752be.zip
Remove sys_chroot() - libreplace already provides an alternative.
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c2
-rw-r--r--lib/replace/replace.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index d757a0154e..0683f556eb 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -667,5 +667,3 @@ char *rep_realpath(const char *path, char *resolved_path)
return NULL;
}
#endif
-
-
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 8d0dd57064..d717d6391c 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -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);