summaryrefslogtreecommitdiffstats
path: root/source/lib/system.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-14 23:12:45 +0000
committerJeremy Allison <jra@samba.org>2002-01-14 23:12:45 +0000
commit73ee41adc64658e9d89e557de686fde4ef9365a2 (patch)
tree54a98ec456e3c7d4d1d225d3aea302afc7c49aa0 /source/lib/system.c
parent1239feecf50ca4ab746c4fbeddd446989bf05721 (diff)
downloadsamba-73ee41adc64658e9d89e557de686fde4ef9365a2.tar.gz
samba-73ee41adc64658e9d89e557de686fde4ef9365a2.tar.xz
samba-73ee41adc64658e9d89e557de686fde4ef9365a2.zip
Finished UNIX extensions - including realpath checks on link creation.
Now to add tests.... Jeremy.
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 3685ce444f8..a4420f5c6c2 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -256,6 +256,21 @@ int sys_mknod(const char *path, mode_t mode, SMB_DEV_T dev)
}
/*******************************************************************
+ Wrapper for realpath.
+********************************************************************/
+
+char *sys_realpath(const char *path, char *resolved_path)
+{
+#if defined(HAVE_REALPATH)
+ return realpath(path, resolved_path);
+#else
+ /* As realpath is not a system call we can't return ENOSYS. */
+ errno = EINVAL;
+ return NULL;
+#endif
+}
+
+/*******************************************************************
The wait() calls vary between systems
********************************************************************/