From 9cd0324f75c22dba2b2a71b81bc29859a75c23a1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Oct 1998 12:35:28 +0000 Subject: added sys_getwd() (This used to be commit 688d19de50c01222c42f61f825fab93a7005f5b6) --- source3/lib/system.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/lib/system.c b/source3/lib/system.c index cae688eb4c..4009e63169 100644 --- a/source3/lib/system.c +++ b/source3/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; -- cgit