diff options
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); |