Index: /branches/pap_branch_070920/psModules/src/camera/pmFPAfileDefine.c
===================================================================
--- /branches/pap_branch_070920/psModules/src/camera/pmFPAfileDefine.c	(revision 14973)
+++ /branches/pap_branch_070920/psModules/src/camera/pmFPAfileDefine.c	(revision 14974)
@@ -32,21 +32,7 @@
     assert(config->site);
 
-    const char *setName = psMetadataLookupStr(NULL, camera, "FILERULES"); // Name of file rules set
-    if (!setName) {
+    psMetadataItem *item = psMetadataLookup(camera, "FILERULES"); // Item with the file rule of interest
+    if (!item) {
         psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find FILERULES in the camera configuration.");
-        return NULL;
-    }
-
-    psMetadata *fileruleSets = psMetadataLookupMetadata(NULL, config->site,
-                                                        "FILERULES"); // Sets of defined file rules
-    if (!fileruleSets) {
-        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find FILERULES in the site configuration.");
-        return NULL;
-    }
-
-    psMetadataItem *item = psMetadataLookup(fileruleSets, setName); // Item with the file rule of interest
-    if (!item) {
-        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find FILERULES set %s in the SITE configuration.",
-                setName);
         return NULL;
     }
@@ -61,6 +47,6 @@
           // It's the name of a file --- read the file, and store it for future use
           if (!pmConfigFileRead(&filerules, item->data.str, "filerules")) {
-              psError(PM_ERR_CONFIG, false, "Trouble reading reading file rules %s --- "
-                      "ignored.\n", setName);
+              psError(PM_ERR_CONFIG, false, "Trouble reading reading file rules from %s  --- "
+                      "ignored.\n", item->data.str);
               psFree(filerules);
               return NULL;
