summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-24 00:09:08 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-24 00:09:08 +0000
commit08d00eb68ee93eaead0f3bbaabc3d89540e0818e (patch)
tree710ccb9b7720c18394876a415803b4a414df8b26 /source3/client/client.c
parent99ad4508a086205a7801e88a2f74ad6fe839431f (diff)
downloadsamba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.tar.gz
samba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.tar.bz2
samba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.zip
- added support for TMPDIR env variable
- fixed fault.c for linux 2.1 - put back in the FIND_SELF failing code - cleaned up casts in encryption (This used to be commit 3af04f1580b2569c0a4f2549bf6352c7a25afa0d)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 477c8fe1f8..708b80a23b 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1651,7 +1651,7 @@ static void cmd_more(void)
strcpy(rname,cur_dir);
strcat(rname,"\\");
- sprintf(tmpname,"/tmp/smbmore.%d",getpid());
+ sprintf(tmpname,"%s/smbmore.%d",tmpdir(),getpid());
strcpy(lname,tmpname);
if (!next_token(NULL,rname+strlen(rname),NULL)) {
@@ -2125,7 +2125,7 @@ static void cmd_mput(void)
pstring tmpname;
FILE *f;
- sprintf(tmpname,"/tmp/ls.smb.%d",(int)getpid());
+ sprintf(tmpname,"%s/ls.smb.%d",tmpdir(),(int)getpid());
if (recurse)
sprintf(cmd,"find . -name \"%s\" -print > %s",p,tmpname);
else