From 7807f2e6b95ee0f8bb0a0dc199337f4412733d0e Mon Sep 17 00:00:00 2001 From: zacheiss Date: Wed, 23 May 2001 21:31:40 +0000 Subject: [PATCH] gmnm should return both machine and container name. --- server/queries2.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/server/queries2.c b/server/queries2.c index 046ae23a..d340da8b 100644 --- a/server/queries2.c +++ b/server/queries2.c @@ -3243,6 +3243,11 @@ static struct validate dmcn_validate = /* for amtn and dmfn */ set_mach_modtime_by_id, }; +static char *gmnm_fields[] = { + "machine", + "machine", "container", +}; + static char *gmoc_fields[] = { "container", "isrecursive", @@ -6709,9 +6714,9 @@ struct query Queries[] = { RETRIEVE, "mcn", MCNTMAP_TABLE, - "c.name FROM machine m, containers c, mcntmap mcn", - amcn_fields, - 1, + "m.name, c.name FROM machine m, containers c, mcntmap mcn", + gmnm_fields, + 2, "m.name = UPPER('%s') AND mcn.cnt_id = c.cnt_id AND mcn.mach_id = m.mach_id", 1, NULL, -- 2.45.2