Kanji fixes for upper/lower case conversion with sjis characters.
[samba.git] / source / lib / system.c
index ea86e9ccaabc239bc972a1f7f91d1838dfa01f11..39f845b30ebaa28acc7f9003d2a0130df4cc205f 100644 (file)
@@ -331,6 +331,22 @@ int sys_chmod(char *fname,int mode)
   return(chmod(dos_to_unix(fname,False),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
 ********************************************************************/