Index: /trunk/psModules/src/camera/pmFPAfile.c
===================================================================
--- /trunk/psModules/src/camera/pmFPAfile.c	(revision 23271)
+++ /trunk/psModules/src/camera/pmFPAfile.c	(revision 23272)
@@ -50,4 +50,5 @@
 
     psFree (file->filename);
+    psFree (file->origname);
     psFree (file->extname);
 
@@ -88,4 +89,5 @@
 
     file->filename = NULL;
+    file->origname = NULL;
     file->extname  = NULL;
 
Index: /trunk/psModules/src/camera/pmFPAfile.h
===================================================================
--- /trunk/psModules/src/camera/pmFPAfile.h	(revision 23271)
+++ /trunk/psModules/src/camera/pmFPAfile.h	(revision 23272)
@@ -91,4 +91,5 @@
     char *name;                         // the name of the rule (useful for debugging / tracing)
     char *filename;                     // the current name of an active file
+    char *origname;                     // the original name (before mangling) of an active file
     char *extname;                      // the current name of an active file extension
 
Index: /trunk/psModules/src/camera/pmFPAfileIO.c
===================================================================
--- /trunk/psModules/src/camera/pmFPAfileIO.c	(revision 23271)
+++ /trunk/psModules/src/camera/pmFPAfileIO.c	(revision 23272)
@@ -740,11 +740,12 @@
     // apply filename mangling rules (file://, path://, neb://)
     bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
-    psString tmpName = pmConfigConvertFilename (file->filename, config, create, false);
-    if (!tmpName) {
+    psString realName = pmConfigConvertFilename(file->filename, config, create, false);
+    if (!realName) {
         psError(PS_ERR_IO, false, "failed to determine real name from template for %s\n", file->filename);
         return false;
     }
-    psFree (file->filename);
-    file->filename = tmpName;
+    psFree(file->origname);
+    file->origname = file->filename;
+    file->filename = realName;
 
     switch (file->type) {
Index: /trunk/psModules/src/config/pmConfigRun.c
===================================================================
--- /trunk/psModules/src/config/pmConfigRun.c	(revision 23271)
+++ /trunk/psModules/src/config/pmConfigRun.c	(revision 23272)
@@ -51,5 +51,5 @@
 
     const char *name = file->name;      // Name of symbolic file
-    const char *value = file->filename; // Value of symbolic file: the file name
+    const char *value = file->origname ? file->origname : file->filename; // The file (system) name
 
     psString regex = NULL;              // Regular expression for iteration
