dump/dump-apath.patch
DistroBaker 0aed75bd72 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/dump.git#192c94ff1f83238e824c7533439ad13f52df4abc
2021-02-08 21:50:20 +00:00

36 lines
1.1 KiB
Diff

diff --git a/common/legacy_indexer.c b/common/legacy_indexer.c
index c60830c..e4aa16d 100644
--- a/common/legacy_indexer.c
+++ b/common/legacy_indexer.c
@@ -41,8 +41,7 @@ extern int tapeno;
extern int Afile; /* archive file descriptor */
static int AfileActive = 1;/* Afile flag */
-//extern char *Apath;
-char *Apath;
+extern char *Apath;
#ifdef USE_QFA
static int GetTapePos (long long *);
diff --git a/dump/main.c b/dump/main.c
index 98c2333..a42182f 100644
--- a/dump/main.c
+++ b/dump/main.c
@@ -104,6 +104,7 @@ char *dumpdates; /* name of the file containing dump date information*/
char lastlevel[NUM_STR_SIZE];/* dump level of previous dump */
char level[NUM_STR_SIZE];/* dump level of this dump */
int zipflag; /* which compression method */
+char *Apath; /* archive file name */
int Afile = -1; /* archive file descriptor */
int uflag; /* update flag */
int mflag; /* dump metadata only if possible */
@@ -211,7 +212,7 @@ main(int argc, char *argv[])
#endif
time_t tnow;
char *diskparam;
- char *Apath = NULL;
+ Apath = NULL;
spcl.c_label[0] = '\0';
spcl.c_date = time(NULL);