mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
added sys_getwd()
(This used to be commit 688d19de50c01222c42f61f825fab93a7005f5b6)
This commit is contained in:
parent
5b2bc01bcf
commit
9cd0324f75
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user