summaryrefslogtreecommitdiff
path: root/lib/replace/replace.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 03:42:27 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 03:42:27 +0100
commita6d537bb6cec25eb27cf8884ca5e3362a86818b3 (patch)
treeacac8aa6554cd6910ec00716b2b3e40bbe4b4fe4 /lib/replace/replace.c
parent38d67363aca81b970717c58b07e04396ae9dfd9f (diff)
downloadsamba-a6d537bb6cec25eb27cf8884ca5e3362a86818b3.tar.gz
Move sys_realpath() to libreplace.
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r--lib/replace/replace.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index f4faef992ae..d757a0154e7 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -658,3 +658,14 @@ int rep_lchown(const char *fname,uid_t uid,gid_t gid)
return -1;
}
#endif
+
+#ifndef HAVE_REALPATH
+char *rep_realpath(const char *path, char *resolved_path)
+{
+ /* As realpath is not a system call we can't return ENOSYS. */
+ errno = EINVAL;
+ return NULL;
+}
+#endif
+
+