summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-02 12:35:28 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-02 12:35:28 +0000
commit9cd0324f75c22dba2b2a71b81bc29859a75c23a1 (patch)
treee7806992a36f2c32d2fca1064e481d9e0bfb5627 /source3/lib/system.c
parent5b2bc01bcf6974ec3a69f2774de7448f48422ff5 (diff)
downloadsamba-9cd0324f75c22dba2b2a71b81bc29859a75c23a1.tar.gz
samba-9cd0324f75c22dba2b2a71b81bc29859a75c23a1.tar.bz2
samba-9cd0324f75c22dba2b2a71b81bc29859a75c23a1.zip
added sys_getwd()
(This used to be commit 688d19de50c01222c42f61f825fab93a7005f5b6)
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c16
1 files changed, 13 insertions, 3 deletions
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;