diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-10-24 00:09:08 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-10-24 00:09:08 +0000 |
commit | 08d00eb68ee93eaead0f3bbaabc3d89540e0818e (patch) | |
tree | 710ccb9b7720c18394876a415803b4a414df8b26 /source3/smbd | |
parent | 99ad4508a086205a7801e88a2f74ad6fe839431f (diff) | |
download | samba-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/smbd')
-rw-r--r-- | source3/smbd/message.c | 2 | ||||
-rw-r--r-- | source3/smbd/server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/message.c b/source3/smbd/message.c index 22523aad3b..2ef5b246c4 100644 --- a/source3/smbd/message.c +++ b/source3/smbd/message.c @@ -53,7 +53,7 @@ static void msg_deliver(void) } /* put it in a temporary file */ - sprintf(s,"/tmp/msg.XXXXXX"); + sprintf(s,"%s/msg.XXXXXX",tmpdir()); strcpy(name,(char *)mktemp(s)); fd = open(name,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,0600); diff --git a/source3/smbd/server.c b/source3/smbd/server.c index c5a7a7ca02..8a6bef1525 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -564,7 +564,7 @@ int disk_free(char *path,int *bsize,int *dfree,int *dsize) pstring syscmd; pstring outfile; - sprintf(outfile,"/tmp/dfree.smb.%d",(int)getpid()); + sprintf(outfile,"%s/dfree.smb.%d",tmpdir(),(int)getpid()); sprintf(syscmd,"%s %s",df_command,path); standard_sub_basic(syscmd); |