diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-08-19 19:22:26 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-08-19 19:22:26 +0000 |
commit | e9269c67a59ffa741123cb2ce3ab8dfb97136dec (patch) | |
tree | 5a1121114ce4e6944379f825d995b61c6e059c99 /source3/lib/util.c | |
parent | c3453bae126c040fa1f90a77a18dfd4fd7536d4a (diff) | |
download | samba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.tar.gz samba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.tar.bz2 samba-e9269c67a59ffa741123cb2ce3ab8dfb97136dec.zip |
Makefile: Changed for HPUX10 tidyup.
includes.h: Changed for HPUX10 tidyup.
ipc.c: Fixed bug where getting local server list from NT browsers would
fail.
nmbsync.c: Fixed bug where getting local server list from NT browsers would
fail.
proto.h: Changed for crash bug on SCO with USE_MMAP.
quotas.c: Added OSF quotas (patch from Bret Giddings <bret@essex.ac.uk>).
Rolled back solaris uid change - I think it was wrong.
reply.c: Changed for crash bug on SCO with USE_MMAP.
server.c: Removed Lukes changes. Changed for crash bug on SCO with USE_MMAP.
smb.h: Changed for crash bug on SCO with USE_MMAP.
smbpasswd.c:Fixed crash bug with Lukes changes.
uid.c: Removed Lukes changes.
util.c: Fixed I18N bug with extended char filenames and widelinks = no.
Jeremy (jallison@whistle.com)
(This used to be commit bf1c79f7fd7f9beec4f9f4e58337cadceeb1cb38)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 9982d105ad..ca17fbdcb4 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1260,11 +1260,18 @@ int ChDir(char *path) ********************************************************************/ static char *Dumb_GetWd(char *s) { + char *p; #ifdef USE_GETCWD - return ((char *)getcwd(s,sizeof(pstring))); + p = (char *)getcwd(s,sizeof(pstring)); #else - return ((char *)getwd(s)); + p = (char *)getwd(s)); #endif + if(!p) + return NULL; + + /* Ensure we always return in dos format. */ + unix_to_dos(p,True); + return p; } |