From 709e9dc9c8d1abb9aee62f2285a627f9113360d7 Mon Sep 17 00:00:00 2001 From: alexhudson Date: Wed, 16 Sep 2009 13:15:28 +0000 Subject: [PATCH] Return an error if the client doesn't have permission to list. --- src/agents/store/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/store/command.c b/src/agents/store/command.c index 8c9775f..d4213a5 100644 --- a/src/agents/store/command.c +++ b/src/agents/store/command.c @@ -2126,7 +2126,7 @@ StoreCommandLIST(StoreClient *client, int ccode; ccode = StoreObjectCheckAuthorization(client, collection, STORE_PRIV_LIST); - if (ccode) return ccode; + if (ccode) return ConnWriteStr(client->conn, MSG4240NOPERMISSION); return StoreObjectIterCollectionContents(client, collection, start, end, flagsmask, flags, props, propcount, NULL, NULL, FALSE);