diff options
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r-- | source3/lib/system.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 631c02633f..b911c29d93 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -255,6 +255,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 ********************************************************************/ |