From b8e8e5ed4e8436c4ad00eac8d72dd1157b770ab6 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Mon, 6 Jun 2005 13:11:06 +0000 Subject: r7332: added note to self for required modification (This used to be commit 8fa340c1d4423673e5a935f815491534413d9536) --- source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index 569978e343..602bd05fa2 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -912,6 +912,7 @@ lsqlite3_initialize(struct lsqlite3_private *lsqlite3, /* * See if we'll be creating a new database, or opening an existing one */ +#warning "eliminate stat() here; concurrent processes could conflict" if ((stat(p, &statbuf) < 0 && errno == ENOENT) || statbuf.st_size == 0) { -- cgit