diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-16 21:38:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-16 21:38:13 +0000 |
commit | 31739a0e1e32abfa7da166afbc5075aeab4124e6 (patch) | |
tree | f5faf5f229a9cbcaf8079beee4a6649bf4aa96eb /source3/smbd/oplock.c | |
parent | f4447df41b59f6939528f517a07078c596d2b8b5 (diff) | |
download | samba-31739a0e1e32abfa7da166afbc5075aeab4124e6.tar.gz samba-31739a0e1e32abfa7da166afbc5075aeab4124e6.tar.xz samba-31739a0e1e32abfa7da166afbc5075aeab4124e6.zip |
O_EXCL fixes for printing files & oplocks.
Jeremy.
(This used to be commit 4ca71c90985b1c88d92bdd0f9079a4afc263dc46)
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r-- | source3/smbd/oplock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 89a2adb900..e0e1658a78 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -1057,7 +1057,7 @@ void check_kernel_oplocks(void) return; } - if((fd = open(tmpname, O_RDWR|O_CREAT|O_TRUNC, 0600)) < 0) { + if((fd = open(tmpname, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600)) < 0) { DEBUG(0,("check_kernel_oplocks: Unable to open temp test file %s. Error was %s\n", tmpname, strerror(errno) )); unlink( tmpname ); |