Commit 70750f9b authored by claes's avatar claes

env variables allowed in backup filename

parent 6f866d2d
......@@ -34,6 +34,7 @@
#include "rt_gdh_msg.h"
#include "rt_bckdef.h"
#include "rt_bck_load.h"
#include "co_dcli.h"
#if defined OS_VMS || defined OS_ELN
......@@ -64,6 +65,7 @@ bck_LoadBackup ()
pwr_tUInt32 d;
char *strp;
char *datap;
char fname[200];
#if defined OS_VMS || defined OS_ELN
short msglen;
......@@ -82,8 +84,9 @@ bck_LoadBackup ()
if (EVEN(sts)) return sts;
/* Open the backup file. */
dcli_translate_filename( fname, backup_confp->BackupFile);
f = fopen (backup_confp->BackupFile, "r+" A_MODE);
f = fopen( fname, "r+" A_MODE);
if (f == NULL) {
SET_ERRNO_STS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment