So using getcwdpath which gives with volume information.
getcwdpath gives with directory seperator as \ which is against our DEFAULT_SLASH of /. So finding and replacing \ with /
-- Kamesh
# endif
#endif
+#ifdef NETWARE
+#include <fsio.h>
+#endif
+
#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
char cwd[MAXPATHLEN];
char *result;
+#ifdef NETWARE
+ result = getcwdpath(cwd, NULL, 1);
+ if(result)
+ {
+ char *c=cwd;
+ while(c = strchr(c, '\\'))
+ {
+ *c='/';
+ ++c;
+ }
+ }
+#else
result = getcwd(cwd, sizeof(cwd));
+#endif
if (!result) {
cwd[0] = '\0';
}