git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1107dc4
)
use O_EXCL for fcntl_lock.c test in case some fool runs on /tmp
author
Andrew Tridgell
<tridge@samba.org>
Wed, 2 May 2001 07:58:40 +0000
(07:58 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 2 May 2001 07:58:40 +0000
(07:58 +0000)
(This used to be commit
4d3d7a0d673b80f1de411a5fb5a23ae06cf80f43
)
source3/tests/fcntl_lock.c
patch
|
blob
|
history
diff --git
a/source3/tests/fcntl_lock.c
b/source3/tests/fcntl_lock.c
index 3cd0e5ff5edef780ba2daf0c46dcdf3af274012f..1b790b0a97a203414287f5642c2c0b226fadf080 100644
(file)
--- a/
source3/tests/fcntl_lock.c
+++ b/
source3/tests/fcntl_lock.c
@@
-74,7
+74,8
@@
int main(int argc, char *argv[])
}
}
- fd = open(DATA, O_RDWR|O_CREAT|O_TRUNC, 0600);
+ unlink(DATA);
+ fd = open(DATA, O_RDWR|O_CREAT|O_EXCL, 0600);
if (fd == -1) {
fprintf(stderr,"ERROR: failed to open %s (errno=%d)\n",