summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-23 00:38:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:45 -0500
commitf3b412fbd6dd94d64eb6a63d88baef2816891c29 (patch)
tree61b6086157d30cf1dd64c8cc720638cd484c78d1 /source4/client
parent92d74c340843f52aaced18dcc243965387fcaedb (diff)
downloadsamba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.tar.gz
samba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.tar.bz2
samba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.zip
r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without prefixes to their names, etc). See lib/replace/README for a list. Functions that behave different from their POSIX specification (such as sys_select, sys_read, etc) have kept the sys_ prefix. (This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index b6b95a4ebd..1e41924321 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -960,7 +960,7 @@ static int cmd_more(const char **cmd_ptr)
fstrcat(rname,"\\");
slprintf(lname,sizeof(lname)-1, "%s/smbmore.XXXXXX",tmpdir());
- fd = smb_mkstemp(lname);
+ fd = mkstemp(lname);
if (fd == -1) {
d_printf("failed to create temporary file for more\n");
return 1;
@@ -2601,11 +2601,11 @@ static int cmd_printmode(const char **cmd_ptr)
static int cmd_lcd(const char **cmd_ptr)
{
fstring buf;
- pstring d;
+ char d[PATH_MAX];
if (next_token(cmd_ptr,buf,NULL,sizeof(buf)))
chdir(buf);
- DEBUG(2,("the local directory is now %s\n",sys_getwd(d)));
+ DEBUG(2,("the local directory is now %s\n",getcwd(d, PATH_MAX)));
return 0;
}