diff options
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r-- | source3/lib/system.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index ea86e9ccaa..39f845b30e 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -332,6 +332,22 @@ int sys_chmod(char *fname,int mode) } /******************************************************************* +for getwd +********************************************************************/ +char *sys_getwd(char *s) +{ + char *wd; +#ifdef USE_GETCWD + wd = (char *) getcwd (s, sizeof (pstring)); +#else + wd = (char *) getwd (s); +#endif + if (wd) + unix_to_dos (wd, True); + return wd; +} + +/******************************************************************* chown isn't used much but OS/2 doesn't have it ********************************************************************/ int sys_chown(char *fname,int uid,int gid) |