X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/65adfb5376967b1c9888020c87ab891d80752f36..50c7536e7dd63b0f26f38a1ee1c45b8b18dd739e:/server/queries2.c diff --git a/server/queries2.c b/server/queries2.c index 70f6c954..8456649d 100644 --- a/server/queries2.c +++ b/server/queries2.c @@ -25,6 +25,7 @@ int access_service(); int access_filesys(); int access_host(); int access_ahal(); +int access_snt(); /* Query Setup Routines */ int prefetch_value(); @@ -954,7 +955,7 @@ static struct validate gsnt_validate = { 0, 0, 0, - 0, + access_snt, 0, followup_gsnt, }; @@ -975,7 +976,7 @@ static struct validate asnt_validate = asnt_valobj, 4, NAME, - "name = uppercase(LEFT('%s',SIZE(name))) OR description = '__'+'%s' OR saddr = '%s'", + "name = uppercase(LEFT('%s',SIZE(name)))", 3, SNET_ID, 0, @@ -1001,7 +1002,7 @@ static struct validate usnt_validate = usnt_valobj, 5, NAME, - "snet_id = %d OR description = '__'+'%s' OR description = '__'+'%s' OR saddr = '%s'", + "snet_id = %d", 4, SNET_ID, 0,