diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-02 12:35:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-02 12:35:28 +0000 |
commit | 688d19de50c01222c42f61f825fab93a7005f5b6 (patch) | |
tree | db44512d298513385614f77f0ff8c6de19b0b337 /source | |
parent | 1dcefb3f8e1e8b407d7f45332262e1b04bc1d6ee (diff) | |
download | samba-688d19de50c01222c42f61f825fab93a7005f5b6.tar.gz samba-688d19de50c01222c42f61f825fab93a7005f5b6.tar.xz samba-688d19de50c01222c42f61f825fab93a7005f5b6.zip |
added sys_getwd()
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/system.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/source/lib/system.c b/source/lib/system.c index cae688eb4c3..4009e63169b 100644 --- a/source/lib/system.c +++ b/source/lib/system.c @@ -445,10 +445,9 @@ int dos_chmod(char *fname,mode_t mode) } /******************************************************************* -for getwd - takes a UNIX directory name and returns the name -in dos format. +system wrapper for getwd ********************************************************************/ -char *dos_getwd(char *s) +char *sys_getwd(char *s) { char *wd; #ifdef HAVE_GETCWD @@ -456,6 +455,17 @@ char *dos_getwd(char *s) #else wd = (char *)getwd(s); #endif + return wd; +} + +/******************************************************************* +for getwd - takes a UNIX directory name and returns the name +in dos format. +********************************************************************/ +char *dos_getwd(char *s) +{ + char *wd; + wd = sys_getwd(s); if (wd) unix_to_dos(wd, True); return wd; |