From ba408d2379e62687fc80b2c6028c67e73cb48f34 Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 8 Sep 1989 15:36:11 +0000 Subject: [PATCH 1/1] do locking of tables before register_user query --- server/queries2.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/queries2.c b/server/queries2.c index 9b96d952..fdd53ddd 100644 --- a/server/queries2.c +++ b/server/queries2.c @@ -282,9 +282,16 @@ static char *rusr_fields[] = { UID, LOGIN, "fs_type" }; +static struct valobj rusr_valobj[] = { + {V_LOCK, 0, USERS, 0, USERS_ID, SMS_DEADLOCK}, + {V_LOCK, 0, LIST, 0, LIST_ID, SMS_DEADLOCK}, + {V_LOCK, 0, FILESYS, 0, FILSYS_ID, SMS_DEADLOCK}, + {V_LOCK, 0, "nfsphys", 0, "nfsphys_id", SMS_DEADLOCK}, +}; + static struct validate rusr_validate = { - ausr_valobj, - 1, + rusr_valobj, + 4, 0, 0, 0, -- 2.45.2