From f3b412fbd6dd94d64eb6a63d88baef2816891c29 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 23 Sep 2005 00:38:22 +0000 Subject: 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) --- source4/client/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/client') 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; } -- cgit