mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy.
This commit is contained in:
@ -33,15 +33,14 @@ setup the shared area
|
||||
void smbw_setup_shared(void)
|
||||
{
|
||||
int fd;
|
||||
pstring s, name;
|
||||
pstring name;
|
||||
|
||||
slprintf(s,sizeof(s)-1, "%s/smbw.XXXXXX",tmpdir());
|
||||
slprintf(name,sizeof(name)-1, "%s/smbw.XXXXXX",tmpdir());
|
||||
|
||||
fstrcpy(name,(char *)smbd_mktemp(s));
|
||||
fd = smb_mkstemp(name);
|
||||
|
||||
/* note zero permissions! don't change this */
|
||||
fd = sys_open(name,O_RDWR|O_CREAT|O_TRUNC|O_EXCL,0);
|
||||
if (fd == -1) goto failed;
|
||||
|
||||
unlink(name);
|
||||
|
||||
shared_fd = set_maxfiles(SMBW_MAX_OPEN);
|
||||
|
Reference in New Issue
Block a user